SAML - Failed to initiate SSO authn error
171
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:54 PM
Symptom
User gets 'Failed to initiate SSO authn error' when attempting to login to PVWA using SAML
The following type of messages appears in the PVWA.App.Log log file on the PVWA:-
2023-02-07 13:54:10,140 || DEBUG || 43 || || || 707abcdef-f5aa-4a35-8bd0-8ab12d5b86da || Logon failed || y: Failed to initiate SSO authn request to the identity provider ---> ComponentSpace.SAML2.Exceptions.SAMLSchemaValidationException: One or more configuration XML schema validation errors occurred.
Environment
11.6;11.7;12.0;12.1;12.2;12.3;12.6;12.7;13.0 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access
PVWA
Cause
This error means that the PVWA is unable to create a SAML request to the IdP due to some inconsistencies in the saml.config file.
Resolution
Check the SAML config file for the following:
- There are no extraneous '<' or '>' characters in a line
- All elements have a closing '/' statement. For example, if there is a line that says <PartnerCertificates>, there must be a line further down the file that says </PartnerCertificates>. The following is also valid - <ServiceProvider Name="PasswordVault" Description="PasswordVault Service Provider" /> (note the '/' at the end of the line)
- If using signed requests please refer to this document:- https://community.cyberark.com/s/article/Failed-to-initiate-SSO-authn-request-to-the-identity-provider-error-when-configuring-signed-requests-in-SAML
- Ensure there are no extra spaces at the end of lines. Check this using a text editor such as Notepad++ which has an option to show formatting characters