PolicyAuthorizationResult.Challenge 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.
Indicates that an unauthenticated user requested access to an endpoint that requires authentication.
public:
static Microsoft::AspNetCore::Authorization::Policy::PolicyAuthorizationResult ^ Challenge();
public static Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult Challenge ();
static member Challenge : unit -> Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult
Public Shared Function Challenge () As PolicyAuthorizationResult
Returns
The PolicyAuthorizationResult.