CookieAuthenticationOptions.LoginPath 屬性

定義

處理 ChallengeAsync 時,重新導向目標的處理常式會使用 LoginPath 屬性。 目前新增至 LoginPath 的 URL,做為 ReturnUrlParameter 所命名的查詢字串參數。 一旦對 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

屬性值

適用於