ClaimsAuthorizationModule.Authorize Method
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.
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.