Sharing Azure SAML for PVWA and also for other clients (Email, SSO applications etc)
Symptom
When using SAML in PVWA you have the configuration option LogoffURL in PVWA > Options > Authentication Methods > saml
The PVWA logoff action is calling to the logoff URL that was configured for the ldp authentication. In this case it would be the Azure logoff URL.
Checking "Logout URL" property which on the Azure page Idira SAML Authentication | SAML-based Sign-on there is the section "Set up Idira SAML Authentication" you may notice it has the same value as "Login URL". Using this value of "Logout URL" in PVWA LogoffURL option results in this error:
Microsoft: Sorry, but we’re having trouble signing you in. AADSTS750054 : SAMLRequest or SAMLResponse must be present as query string parameters in HTTP request for SAML Redirect binding
For this reason it's recommended to use the PVWA LogoffURL as https://login.microsoftonline.com/common/wsfederation?wa=wsignout1.0
Due to using this value, Azure will sign you out of PVWA and also out of other SSO Applications if they are sharing this same SAML configuration.
Environment
10.10;11.5;12.2;12.6;13.0;13.2;14.0 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access
PVWA, SAML, Azure
Cause
- The session configuration is on the Idp side (in this case Azure sessions configuration).
- PVWA is not responsible for the session configuration.
- If the configured logoff URL is direct to the idp service logoff URL, then the Idp service is the one that "kills" the session, and not the PVWA
Resolution
There are 2 actions that can be considered for this:
1. On the PVWA: Change the logoff URL at the Idp authentication configuration to another URL that does not call to Azure disconnection service.
2. Change the session behavior configuration in Azure itself (Azure settings, not related to the PVWA configuration).
It is worth noting that if logoff URL is https://login.microsoftonline.com/common/wsfederation?wa=wsignout1.0 then
- When using the same browser, if you open PVWA using incognito mode and the email/SSO application in normal mode, signing off the PVWA will not sign you out of email/SSO application as well.
- Similarly if you open email/SSO application using incognito mode and PVWA in normal mode then you are not signed out of both.
- Also if you open PVWA in one browser, and email/SSO application in another browser again you are not being signed out of both.