Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force reauthenticate with adfs

I have seen a similar post but that was more related to ASP. I will explain my situation below.

I am developing a SP(Relying Party) and integrating with ADFS (IDP). Since I am in the integration phase, I want ADFS to forget that I have previously authenticated so that each time I hit the ADFS endpoint (/adfs/ls) with AuthnRequest, I want it to ask for my credentials.

I believe ADFS by default, remembers clients by their remote IP/host name so clearing cookies on client machine does not help. There was a post that gave a link to logout from IDP (https:///adfs/ls/?wa=wsignout1.0&wreply=https:///adfs/ls/?wa=wsignoutcleanup1.0). The ADFS says I have been logged out but when I hit ADFS endpoint, ADFS redirects back to SP with successful AuthResponse.

Can you please tell me how to force reauthenticate/logout on ADFS or point me to the right articles?

like image 310
Rag Avatar asked Dec 28 '25 03:12

Rag


1 Answers

The FederatedPassiveSignInStatus control (which should be part of VS if you've installed all the WIF stuff) will help you. Add it to your app. and clicking it will log you out of everything.

Also AD FS: How to Invoke a WS-Federation Sign-Out

like image 130
rbrayb Avatar answered Dec 31 '25 00:12

rbrayb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!