CookieAuthenticationOptions.LoginPath Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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