layout: docs-default
登出 Endpoint
重定向到logout endpoint 來清除認證會話和cookie。
這個 endpoint有兩個可選參數:
-
id_token_hint
- 客戶端申請認證時的id_token,用來繞過登出確認頁面,同時提供一個重定向URL
-
post_logout_redirect_uri
- 登出后重定向的 URI (默認顯示為一個超鏈接).這個URI必須在允許的登出URIs列表中。
/connect/endsession?id_token_hint=...&post_logout_redirect_uri=https://myapp.com
參看 AuthenticationOptions 了解如何配置logout endpoint 的行為和登出頁面。