Partager via


CookieAuthenticationOptions.LoginPath Propriété

Définition

La propriété LoginPath informe l'intergiciel (middleware) de la nécessité de modifier un code d'état Non autorisé 401 sortant en une redirection 302 sur le chemin d'accès de connexion donné. L'URL qui a généré le code 401 est ajoutée au LoginPath en tant que paramètre de chaîne de requête nommé par le ReturnUrlParameter. Une fois qu’une demande adressée à LoginPath a accordé une nouvelle identité SignIn, la valeur ReturnUrlParameter est utilisée pour rediriger le navigateur vers l’arrière
à l’URL qui a provoqué le code d’status non autorisé d’origine.

public:
 property Microsoft::AspNetCore::Http::PathString LoginPath { Microsoft::AspNetCore::Http::PathString get(); void set(Microsoft::AspNetCore::Http::PathString value); };
public Microsoft.AspNetCore.Http.PathString LoginPath { get; set; }
member this.LoginPath : Microsoft.AspNetCore.Http.PathString with get, set
Public Property LoginPath As PathString

Valeur de propriété

S’applique à