-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add a new ForbiddenResult #3242
Comments
Is there going to be a 'convenience' controller method for this? 💡 |
I don't think implement a ForbiddenResult is a good way to solve forbidden requests. It will make a lot of redirects. Why not implement a PromptResult and make it render a View to solve the most of requires in MVC?
|
@kagamine I believe this is just about sending a 403 to the client. Another middleware can certainly intercept that result and do some alternate behavior. |
@pranavkm can you look at Forbidden as well as Challenge? Currently the MVC template manufactures ChallengeResults on its own - maybe it could also use a helper? |
@tuespetre missed your comment when making this change. |
@pranavkm yes we want those for use in the templates as well. |
This would be almost identical to ChallengeResult, except it calls Forbid instead of Challenge, which would make it easier to directly specify access denied flows (i.e. signal cookies to redirect to the access denied page).
The text was updated successfully, but these errors were encountered: