HttpConnectionDispatcherOptions.EnableAuthenticationRefresh 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當 設定為 true時,會啟用 /refresh 端點,允許客戶端在不斷開連線的情況下刷新認證權杖。 伺服器會重新認證請求並更新連線的 ClaimsPrincipal。
public bool EnableAuthenticationRefresh { get; set; }
member this.EnableAuthenticationRefresh : bool with get, set
Public Property EnableAuthenticationRefresh As Boolean
屬性值
備註
建議同時啟用 CloseOnAuthenticationExpiration ,若認證未在驗證到期前刷新,連線即被關閉。