Dela via


PolicyAuthorizationResult.Challenge Method

Definition

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.

Applies to