SAML authentication redirection loop in Chrome
Symptom
When attempting SAML authentication in Chrome, the page gets stuck in a redirection loop which does not end.
Environment
10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.2 PVWA
Recent versions of Chrome
Cause
Due to security changes in Chome, all cookies that are not marked as 'secure' and SameSite not strict are not included in the login request. The cookies that were filtered are all the CA (CA11111, CA22222 etc.) and mobileState cookies. Those cookies are required for the "logon" procedure.
The endless loop between the SAML provider and the PVWA was because of logoff URL that forward the SAML request to the SAML provider, return the existing session and again the cookies are filtered.
Chrome announced this change and published developer guidance. You can read about it at https://blog.chromium.org/2019/10/developers-get-ready-for-new.html
Microsoft also published an article that include also information on the SameSite cookies changes and usage that is available at https://docs.microsoft.com/en-us/aspnet/samesite/system-web-samesite
Resolution
For each PVWA:
• Open the web.config
• Replace the row:
<httpCookies httpOnlyCookies="true" requireSSL="false" />
to
<httpCookies httpOnlyCookies="true" requireSSL="true" />
• Restart the IIS