I have a scenario where I must do external federated sign in in Sitecore 9.1. I'm using openid/oauth2 with an external ADFS 2016.
I'm using the Habitat solution as a starting point and I've successfully added the new identity provider and login with the ADFS.
Currently I only have one issue with the sign-out functionality.
I want to be able to sign out the user on Sitecore and on ADFS. For that I followed the documentation here:
I've configured the "triggerExternalSignout" and when I log out this is the behavior:
- Click on Habitat Log out which calls AuthenticationManager.Logout();
- Sitecore seems to clear local auth cookies and sets the sc_externalLogout cookie
- Sitecore / Owin redirects the user to ADFS signout url.
- ADFS signs out the user an redirects the user back to Sitecore.
- Sitecore now send the user again to ADFS and the user is stuck in a navigation loop.
Reading the important note on the documentation, this seems to be a known behavior. But It doesn't mention solutions, Is this expected? Was there no scenario predicted for the user to get back to the Sitecore site after being sign out from the external provider?
Thanks for the help.