Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AccessDenied page in public store #7603

Open
RomanovM opened this issue Feb 25, 2025 · 0 comments
Open

AccessDenied page in public store #7603

RomanovM opened this issue Feb 25, 2025 · 0 comments

Comments

@RomanovM
Copy link
Contributor

RomanovM commented Feb 25, 2025

In the admin area, when a user have no access to some resources, we display AccessDenied page. We could add the same in the public store.
Then we could use it when checking permissions, for example in AuthorizeAdminAttribute or CheckAccessPublicStoreAttribute and instead of Challenge (401) result, return Forbid (403) result, and redirect the user to the AccessDenied page.
In this case, we should change "page-not-found" route to a new "access-denied" one here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant