How to create new custom SAML 2.0 application in OKTA to work with PAS 10.10+, 11.1 SAML authentication?
Symptom
After configure OKTA application, SAML connection error
PASWS008E SAML authentication is not configured properly. Please contact your Administrator.
The API endpoint returns an HTTP 500 error which you can see in the IIS logs.
In the WebSession log there is this more detailed error:
CyberArk.PasswordVault.PASWebServices.MissingConfigurationParametersException: PASWS008E SAML authentication is not configured properly. Please contact your Administrator.
Environment
10.10;11.1;11 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access
10.10
Cause
OKTA application configuration and web.config configuration issue.
Resolution
Create a new custom SAML 2.0 Application in OKTA:
- Single Sign On URL: https://PVWA-URL/PasswordVault/v10/logon/saml
- CLICK "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 URI Restriction: PasswordVault
- Default RelayState
- Name ID format: Unspecified
- Application username Okta username
- Update application username on Create and update
- Click the "SHOW ADVANCED SETTINGS" to access the additional options
- Response: Signed
- Assertion Signature: Unsigned
- Signature Algorithm: RSA-SH256
- Digest Algorithm: SHA256
- Assertion Encryption: Unencrypted
- Enable Single logout: <Leave it not selected>
- Assertion Inline Hook: None
- Inline hooks are outbound calls from Okta to your own custom code, not necessary in this case.
- Authentication context class: PasswordProtectedTransport
- Honor Force Authentication: Yes
- Application username: <should be passed in as the samaccountname format. i.e. 'user' instead of 'user@domain.com'>
- SAML Issuer ID: PasswordVault
After the app is created, OKTA will display the following values, you will need to provide on the Idira side of things in the \inetpub\wwwroot\PasswordVault\web.config
IdentityProviderLoginURL - The login URL of your IdP.
IdentityProviderCertificate - The base 64 text representation of the certificate that is configured for your IdP as the SAML response signing certificate. This is used by the PVWA to verify the authenticity of the responses.
Issuer - The Issuer string that enables the PVWA to identify itself to the IdP. Also known as the EntityID. It must be identical to the Audience defined in the IdP. The default value for this parameter is PasswordVault
When configuring SAML in the PVWA:
- In the Options pane, right-click Access Restriction, and then select Add AllowedReferrer.
- In the Properties pane, in BaseURL, specify the URL of your IdP. THIS IS THE whole url that is provided as the IdentityProviderLoginURL
- - shortening the URL is a less secure implementation method
The PVConfiguration.xml need to have AllowedReferrer BaseUrl properly referenced.
Please also ensure that the SAML related .dlls are correctly located in the wwwroot\PasswordVault\Bin folder.