2016-12-19 5 views
1

サインアウトにリダイレクトしない:ADFS 3.0は、私がログアウトについては、以下のURLを試してみました

https://adfs.example.com/adfs/ls/?wa=wsignout1.0&wreply=https://localhost:32971/ https://adfs.example.com/adfs/ls/?wa=wsignout1.0&wreply=http://localhost:32971/ https://adfs.example.com/adfs/ls/?wa=wsignoutcleanup1.0&wreply=https://localhost:32971/ https://adfs.example.com/adfs/ls/?wa=wsignoutcleanup1.0&wreply=http://localhost:32971/

これは、ADFS側でサイトhttp://localhost:32971

から来ている私が持っていますWS-Federationパッシブエンドポイントは、 https://localhost:32971/

と設定されています

これもデフォルトに設定されていますので、ここで何が欠けていますか?

+0

これを解決しましたか? – aglasser

+0

@aglasserいいえ、これ以上は得られませんでした。 – RichardMc

+0

2ヶ月以上にわたりマイクロソフトのサポートに関する問題を公開していますが、その方法を教えてもらえません。バカバカしい。 –

答えて

0
  string absoluteUrl = HttpContext.Request.Url.AbsoluteUri; 
      string replyUrl = absoluteUrl.Substring(0, absoluteUrl.LastIndexOf("/") + 1); 
      var issuer = FederatedAuthentication.WSFederationAuthenticationModule.Issuer; 
      var signOutUrl = WSFederationAuthenticationModule.GetFederationPassiveSignOutUrl(issuer, null, null); 
      WSFederationAuthenticationModule.FederatedSignOut(new Uri(signOutUrl), new Uri(replyUrl)); 
      FederatedAuthentication.SessionAuthenticationModule.SignOut(); 
      Response.Redirect(Request.RawUrl); 

これを試してください。役立つかもしれません。

+0

なぜ「これは?」良い答えは、何が行われたのか、なぜそれがOPのためにだけでなく、将来の訪問者のためにそうした方法で行われたのかについての説明を常に持つでしょう。他人に理解させるために説明を追加してください。幸せなコーディング:) –

関連する問題