AuthorizationFailure Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encapsulates a failure result of AuthorizeAsync(ClaimsPrincipal, Object, IEnumerable<IAuthorizationRequirement>).
public ref class AuthorizationFailure
public class AuthorizationFailure
type AuthorizationFailure = class
Public Class AuthorizationFailure
- Inheritance
-
AuthorizationFailure
Properties
FailCalled |
Failure was due to Fail() being called. |
FailedRequirements |
Failure was due to these requirements not being met via Succeed(IAuthorizationRequirement). |
FailureReasons |
Allows IAuthorizationHandler to flow more detailed reasons for why authorization failed. |
Methods
ExplicitFail() |
Return a failure due to Fail() being called. |
Failed(IEnumerable<AuthorizationFailureReason>) |
Return a failure due to Fail(AuthorizationFailureReason) being called. |
Failed(IEnumerable<IAuthorizationRequirement>) |
Return a failure due to some requirements not being met via Succeed(IAuthorizationRequirement). |