SAML Authentication Troubleshooting

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Workforce Identity Articles
4 min read
L2 Linker
No ratings
To help customers troubleshoot SAML authentication related issues where SAML authentication set-up configurations fail, we detail the following messages and responses to help customers configure their SAML IDP and PVWA correctly.

The customer will get an error in their client (ita.log):  PASWS011E Missing mandatory parameter [username].
The corresponding PVWA WebApplication.log, will show a more detailed error.

The following table will detail the errors in the PVWA WebApplication.log.
Use the table below to understand what each error means and what needs to be amended in the set up:
 

Steps

Error MessageIssueSolution
CASW063E SAML response was not authorized. Check the connection to the IdP server.IDP-Initiated flow set up identified.configure your IDP based on the SAML configuration documentation.
CASW051E SAML Response should contain a single signature node.

or

PASWS011E Missing mandatory parameter [username]. ---> CyberArk.Services.Web.Exceptions.SAMLInResponseToMismatchException: CASW063E SAML response was not authorized. Check the connection to the IdP server.

Both the SAML response base element and inner assertion are signed.Make sure that the IDP response contains a single signature:
Either only sign the SAML response base element, or only sign the inner assertion.
CyberArk.PasswordVault.PASWebServices.MissingFieldException: PASWS011E Missing mandatory parameter [username]. --->         System.ArgumentNullException: Value cannot be null.
Parameter name: key
The IDP is configured with lower case (passwordvault) for the Assertion Consumer Service URL. When the SAML response is returned the cookies are not returned because they are associated with the camel case URL (PasswordVault)Edit the IDP configuration to use the camel case URL (PasswordVault) so that the cookies are found and returned with the SAMLResponse
CASW046E SAML Response signature validation failed on node [{0}]IDP signature is not valid.Make sure the IdentityProviderCertificate value in the web.config is identical to the signature in the IDP.
CASW050E SAML Response should contain a single assertion node.IDP response contains more than a single assertion.Make sure that the IDP response contain a single assertion.
CASW067E SAML Response contains multiple response nodes.IDP response contains more than a single response.Make sure that the IDP response contain a single response.
CASW068E SAML Response signature does not contain valid reference URI.SAML Response signature does not contain valid reference URI.Make sure that the IDP response Signature references a node within the SAML response and only have one node with this ID
CASW068E SAML Response signature does not contain reference URI.SAML Response signature does not contain reference URI.Make sure that the IDP response signature contain a reference URI
CASW066E CASW045E SAML Response condition validation failed. assertion condition missing audience restriction.SAML assertion condition missing audience restriction.Make sure that the IDP response signature node contains audience
CASW064E SAML Response audience restriction condition validation failed. assertion audience is not valid: {0}.IDP response ‘Audience’ value does not match ‘Issuer’ value.Make sure that the IDP response Audience value is equal to the Issuer value in the web.config
CASW070E SAML Response can not contain XPath, XSL or RetrievalMethod elements.SAML Response contains XPath, XSL or RetrievalMethod elements.Remove any XPath, XSL or RetrievalMethod elements from the SAML response
CASW065E SAML Response contains signature wrapping attack.SAML Response contains signature wrapping attack. 
CASW044E SAML Response condition validation failed. assertion time is earlier than time mentioned in condition: {0}.

 
Incorrect SAML assertion time Make sure that the assertion time matches the PVWA time
CASW045E SAML Response condition validation failed. assertion time is later than time mentioned in condition: {0}.

 
Incorrect SAML assertion time Make sure that the assertion time matches the PVWA time
CASW047E SAML Response does not contain NameID tag.

 
SAML Response needs to contain NameID tag.

 
Define nameID in the IDP
CASW049E SAML Response does not contain NameID tag. Code: [{0}]

 
SAML Response needs to contain NameID tag.

 
Define nameID in the IDP
CASW062E Input parameter for [{0}] value is invalidnameID may contain unsupported charactersRemove any unsupported characters from nameID
CASW040E Unable to retrieve user name from saml response. Reason [Value cannot be null.  Parameter name: key]
PVWA DLLs version misallianceCreate a back up of CyberArk.Services.Web.dll, Cyberark.PasswordVault.PASWebServices.dll and CyberArk.Authentication.SAML.dll from the PasswordVault\Bin folder.

Copy the DLLs From the Support Vault > Idira PAS Archive > (PVWA Version) > PAS Patches > Password Vault Web Access to the same folder and replace the current files. Perform IISReset. 
Rate this article:
  • 16732 Views
  • 0 comments
  • 0 Likes
Article Dashboard
Version history
Last Updated:
‎11-05-2026 12:14 PM
Updated by: