Muokkaa

Jaa


ClaimsAuthorizationModule.Authorize Method

Definition

Returns a value that indicates whether the requestor (principal) is authorized for the current request.

protected:
 virtual bool Authorize();
protected virtual bool Authorize ();
abstract member Authorize : unit -> bool
override this.Authorize : unit -> bool
Protected Overridable Function Authorize () As Boolean

Returns

true if the principal is authorized; otherwise, false. The default is true if no claims authentication manager is associated with this module.

Exceptions

The ClaimsPrincipal associated with the request is not authorized.

Remarks

The claims authentication manager specified in the ClaimsAuthorizationManager property is invoked to authorize the request.

Applies to