簡體   English   中英

使用Thinktecture Identity Server 2進行單點注銷

[英]Single Sign Out with Thinktecture Identity Server 2

我對Thinktecture的Identity Server 2的理解是沒有實現單點登出。 換句話說,當您退出一個依賴方時,Identity Server不會自動將用戶從任何其他RP中簽名。 我知道有關於此的帖子,但我還沒有找到任何關於如何擴展Identity Server來執行此操作的內容。 我已經看到一些帖子說Identity Server已經開箱即用了...如果確實如此,我還是無法找到方法。

我有SSO與Asp.NET Web Forms,WIF和Identity Server 2一起正常工作,我能夠很好地退出RP,但從我可以看出,Identity Server中需要一些額外的代碼才能將用戶從他可能登錄的任何其他RP中完全簽名。

有沒有人擴展Identity Server以實現單點注銷?

這是可以在Identity Server中配置還是需要一些編碼的東西?

如果你擁有它,我真的很感激。

謝謝。

IdentityServer支持通過WS-Federation進行單點注銷。 您的RP需要向IdentityServer發出注銷請求,讓用戶退出IdentityServer以及通過WS-Fed通過IdentityServer驗證的任何其他RP。 以下是您的RP如何提出此類請求的摘要:

var sam = FederatedAuthentication.SessionAuthenticationModule;
sam.SignOut();

var fam = FederatedAuthentication.WSFederationAuthenticationModule;
var signOutRequest = new SignOutRequestMessage(new Uri(fam.Issuer));
// optional -- put your RP's URL here
// signOutRequest.Reply = "https://localhost:44321/";
var url = signOutRequest.WriteQueryString();
Response.Redirect(url);

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM