Access is Denied With SAML Authentication

Access is Denied With SAML Authentication

217
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:53 PM


Symptom


After a successful authentication process using SAML, an error message is displayed saying: Access is Denied.

There are no errors in PVWA logs and IIS logs.

Also, when trying to reload the same address that the caused the Access is Denied error message, you are able to successfully access the PVWA already logged in.



Environment


10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;14.2 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access Password Vault Web Access Authentications

Cause


Issue is caused due to incorrect AllowedReferrer setting.



Resolution


Using Developer Tools check the headers of the response that was received from the IDP and add the Referrer to the AllowedReferrer list in PVWA.

IE:
1. Open IE and hit F12 to open Developer Tools
2. Select the Network tab.
3. Deselect the "Clear entries on navigate" option (icon with 3 lines)
4. Click the play button to start the network capture
5. Reproduce the error.
6. Click the stop button in the IE developer tools to stop the network capture
7. Click the disk icon to export the results of the network capture.

Chrome:
A. Start the HAR recording using chrome dev tools:
1. F12
2. Network Tab
3. Check "preserve Log"
4. Start a fresh recording
5. Navigate to the PVWA and reproduce the issue

B. Gather the Chrome .HAR recording
Right-click in the list of events in the chrome dev tools interface > Save all as HAR with content.

Check the headers of the response that was received from the IDP. Use the URL without file names or variables.

"name": "Referer",
"value": https://my.idp.com/
 

  • Open the PVWA and navigate to Administration > Options:





 
  • Right click on “Access Restriction” and select “Add AllowedReferrer”
  • The “AllowedReferrer” URL from where users will be able to access PVWA. You can specify either of the following:
  • A portal URL that allows access from any page or sub-directory under the company’s portal URL. For example, https://CompanyA/portal/.
  • The exact name of a URL that only allows access from a specific page. For example, https://CompanyB/management/dashboard.




If customer is using Chrome version 85 or above , there is a new default Referrer-Policy for Chrome: strict-origin-when-cross-origin

Therefore, you will need to update above settings as below 

1) login to PVWA UI using admin account
2) Go go Administration->Configuration->Options->Access Restriction Node
Add new allowedReferrer:
baseURL=https://my.idp.com/PasswordVault/.* , RegularExpression = Yes
or 
baseURL=https://my.idp.com/.* , RegularExpression = Yes
3) Click Apply then CLICK OK button to save the changes.

https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PASIMP/Configuring-the-PVWA-Interface.htm
 



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000s0PCAQ&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail