Last post Aug 17, 2016 01:14 PM by VictorSantos
Aug 16, 2016 01:13 PM|VictorSantos|LINK
Is there a way to do a page redirect if an AuthorizationHandler provides a Fail()?
I'd like to have my own Unauthorized page to show up on such cases, instead of only getting back a 401.
Aug 16, 2016 04:12 PM|anurajp|LINK
1. A handler does not need to handle failures generally, as other handlers for the same requirement may succeed.
2. To guarantee failure even if other handlers for a requirement succeed, call context.Fail.
More details - https://docs.asp.net/en/latest/security/authorization/policies.html#what-should-a-handler-return
Aug 17, 2016 01:14 PM|VictorSantos|LINK
I already know about that.
It was only a doubt regarding a way to receive the Fail and do some kind of specific stuff.
I ended up implementing an error interceptor that solved my problem.