Dela via


AuthorizationFailure Class

Definition

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).

Applies to