Share via


CookieAuthenticationOptions.LoginPath 属性

定义

处理 ChallengeAsync 时,处理程序会将 LoginPath 属性用于重定向目标。 作为由 ReturnUrlParameter 命名的查询字符串参数添加到 LoginPath 的当前 URL。 对 LoginPath 的请求授予新的 SignIn 标识后,将使用 ReturnUrlParameter 值将浏览器重定向回原始 URL。

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

属性值

适用于