AuthorizationPolicyBuilder.RequireAuthenticatedUser Método

Definición

Agrega DenyAnonymousAuthorizationRequirement a la instancia actual que exige que se autentique el usuario actual.

public:
 Microsoft::AspNetCore::Authorization::AuthorizationPolicyBuilder ^ RequireAuthenticatedUser();
public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireAuthenticatedUser ();
member this.RequireAuthenticatedUser : unit -> Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder
Public Function RequireAuthenticatedUser () As AuthorizationPolicyBuilder

Devoluciones

Una referencia a esta instancia después de que se haya completado la operación.

Se aplica a