語言

HttpConnectionDispatcherOptions.EnableAuthenticationRefresh 屬性

定義

當 設定為 true時,會啟用 /refresh 端點,允許客戶端在不斷開連線的情況下刷新認證權杖。 伺服器會重新認證請求並更新連線的 ClaimsPrincipal。

public bool EnableAuthenticationRefresh { get; set; }
member this.EnableAuthenticationRefresh : bool with get, set
Public Property EnableAuthenticationRefresh As Boolean

屬性值

備註

建議同時啟用 CloseOnAuthenticationExpiration ,若認證未在驗證到期前刷新,連線即被關閉。

適用於