'Failed to initiate SSO authn request to the identity provider' error when configuring signed requests in SAML
Symptom
When using Idira documentation to help configure signed requests in SAML, a 'Failed to initiate SSO authn request to the identity provider' error appears on the PVWA when attemping to login. The following messages appears in the PVWA.App.Log:-
ComponentSpace.SAML2.Exceptions.SAMLSchemaValidationException: One or more configuration XML schema validation errors occurred.
Environment
11.6;11.7;12.0;12.1;12.2;11.9;11.8;14.2 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access
Password Vault Web Access
Cause
The Idira documentation states that the following lines should be added to the Service Provider element in the saml.config file:-
<LocalCertificates>
<Certificate FileName="<local certificate path>" Password="<the password you set for the certificate>" />
</LocalCertificates>
For clarification, these lines need to be INSIDE the Service Provider element. For example, if the original SAML.config file contains the following:-
<SAMLConfiguration xmlns="urn:componentspace:SAML:2.0:configuration">
<ServiceProvider Name="PasswordVault" Description="PasswordVault Service Provider" />
<PartnerIdentityProviders>
.
.
.
Then when the <LocalCertificates> element is added the relevant section of the SAML.config file should now look like the following:-
<SAMLConfiguration xmlns="urn:componentspace:SAML:2.0:configuration">
<ServiceProvider Name="PasswordVault" Description="PasswordVault Service Provider">
<LocalCertificates>
<Certificate FileName="<local certificate path>" Password="<the password you set for the certificate>" />
</LocalCertificates>
</ServiceProvider>
<PartnerIdentityProviders>
.
.
.
Resolution
Ensure that the <LocalCertificates> element is contained within the <ServiceProvider> element in saml.config