AuthenticationOptions Classe

Definizione

Opzioni per configurare l'autenticazione.

public ref class AuthenticationOptions
public class AuthenticationOptions
type AuthenticationOptions = class
Public Class AuthenticationOptions
Ereditarietà
AuthenticationOptions

Costruttori

AuthenticationOptions()

Opzioni per configurare l'autenticazione.

Proprietà

DefaultAuthenticateScheme

Usato come schema predefinito da AuthenticateAsync(HttpContext, String).

DefaultChallengeScheme

Usato come schema predefinito da ChallengeAsync(HttpContext, String, AuthenticationProperties).

DefaultForbidScheme

Usato come schema predefinito da ForbidAsync(HttpContext, String, AuthenticationProperties).

DefaultScheme

Usato come schema predefinito di fallback per tutte le altre impostazioni predefinite.

DefaultSignInScheme

Usato come schema predefinito da SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties).

DefaultSignOutScheme

Usato come schema predefinito da SignOutAsync(HttpContext, String, AuthenticationProperties).

RequireAuthenticatedSignIn

Se true, SignIn deve generare se è stato tentato con un utente non è autenticato. Un utente viene considerato autenticato se IsAuthenticated restituisce true per la ClaimsPrincipal richiesta HTTP associata.

SchemeMap

Esegue il mapping degli schemi in base al nome.

Schemes

Restituisce gli schemi nell'ordine in cui sono stati aggiunti (importante per la gestione delle richieste priorità)

Metodi

AddScheme(String, Action<AuthenticationSchemeBuilder>)

Aggiunge un AuthenticationSchemeoggetto .

AddScheme<THandler>(String, String)

Aggiunge un AuthenticationSchemeoggetto .

Si applica a