PVWA - SAML OKTA integration
Symptom
New installation of 10.10 - Integrating SAML Authentication returns the following error:
error: {"ErrorCode":"PASWS011E","ErrorMessage":"Missing mandatory parameter [username]."}
Environment
10.10;14.0 PVWA 10.10 / 10.10.1
SAML Authentication
Cause
OKTA SAML default app does not allow certain settings to be configured manually.
The OOB OKTA Idira app does not allow custom Audience Restriction values
Resolution
There is various places you should check which will help you troubleshoot the SAML issue.
SAML authentication: https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PAS%20INST/SAML-Authentication.htm
SAML Authentication Troubleshooting: https://community.cyberark.com/s/article/SAML-Authentication-Troubleshooting
Because the default OKTA SAML app does not allow for certain values to be amended, you will need to create a customer application.
Create a new custom SAML 2.0 Application in OKTA in order to use a custom "Audience Restriction" value:
○ Single Sign On URL: https://PVWA-URL/PasswordVault/v10/logon/saml
○ Enabled "Allow this app to request other SSO URLs" - In order to enable both SP and IdP initiated logins you have to enable the "Allow this app to request other SSO URLs" with the v10 interface for it to complete correctly without errors
○ Requestable SSO URLs: https://PVWA-URL/PasswordVault/api/auth/saml/logon
○ Recipient URL: https://PVWA-URL/PasswordVault/api/auth/saml/logon
○ Destination URL: https://PVWA-URL/PasswordVault/v10/logon/saml
○ Audience Restriction/URI (SP Entity ID): PasswordVault
○ Application Username: Use whichever setting will produce the samaccountname for a user account. i.e. 'user' instead of 'user@domain.com'
○ Assertion Signature: Unsigned
○ SAML Issuer ID: PasswordVault
2. Updated the web.config (IdentityProviderLoginURL,IdentityProviderCertificate, and Issuer) to match the new SAML OKTA app
- C:\inetpub\wwwroot\PasswordVault\web.config
<add key="IdentityProviderLoginURL" value="SSO URL Provided by OKTA"
<add key="IdentityProviderCertificate" value="COPIED FROM SAML"
<add key="Issuer" value="PasswordVault" />
3. Added the new OKTA IdentityProviderLoginURL to the Allowed Referrer list in PVWA