SAML login fail with error "Authentication failure. Please contact your Administrator"

SAML login fail with error "Authentication failure. Please contact your Administrator"

1223
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 15:55 PM


Symptom


When authenticating with SAML, authentication seems to be successful but it will fail at PVWA login page with error "Authentication failure. Please contact your Administrator".

 

In the WebApplication log the following can be seen:

 

| :: | Failed to receive an SSO response from the identity provider

| :: | AUTHN002E SAML authentication failure. Error: aa: Failed to receive an SSO response from the identity provider ---> ComponentSpace.SAML2.Exceptions.SAMLProtocolException: The SAML assertion is outside the valid time period.

 at ComponentSpace.SAML2.InternalSAMLServiceProvider.CheckWithinTimePeriod(SAMLAssertion samlAssertion)

 at ComponentSpace.SAML2.InternalSAMLServiceProvider.ProcessSAMLAssertion(SAMLAssertion samlAssertion, String& authnContext, String& userName, SAMLAttribute[]& attributes)

 at ComponentSpace.SAML2.InternalSAMLServiceProvider.ReceiveSSO(HttpRequest httpRequest, Boolean& isInResponseTo, String& partnerIdP, String& authnContext, String& userName, SAMLAttribute[]& attributes, String& relayState)

 at ComponentSpace.SAML2.SAMLServiceProvider.ReceiveSSO(HttpRequest httpRequest, Boolean& isInResponseTo, String& partnerIdP, String& authnContext, String& userName, IDictionary`2& attributes, String& relayState)

 at q.a(HttpRequest A_0, Boolean& A_1, String& A_2, String& A_3, String& A_4, IDictionary`2& A_5, String& A_6)

 at r.a(HttpRequest A_0)

 --- End of inner exception stack trace ---

 at r.a(HttpRequest A_0)

 at CyberArk.Authentications.WebServices.AuthExecuters.SAMLAuthenticationExecuter.Logon(LogonData data, Boolean shouldCreateCookie)

| :: | PASWS035E Authentication failure. Please contact your Administrator.

| :: | PASWS002I Ending method Auth::Logon



Environment


11.5;12.2;25.9 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access Password Vault Web Access Authentications

Cause


There are different possible causes:
1. This is due to some time different between PVWA server and the IDP time.
2. There is a mismatch in the X509 certificate between PVWA and IdP. For example, a possible reason is that in the decoded/deflated response the X509 Certificate is formatted with newlines, whereas in the saml.config, the Certificate String is one unbroken line.  The certificates must match exactly.



Resolution


  1. Check the time on the PVWA server and the IDP time. Make sure the time is in sync. Once the time is fix perform a IIS reset.
  2. Check the certificates. Ensure that the X509 certificates are matching on the IdP side and in the saml.config. 
 

To facilitate the analysis, the SAML response can also be validated with the following tool:

https://www.samltool.com/validate_response.php

Note that no data is stored or saved on this tool. However, for added security, do not enter any production keys.



Actions
  • Print
  • Copy Link

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