Hi,
We have implemented Pac4j SAML client using the pac4j-saml library of version 2.2.0. The single sign on capability was working with fine with ADFS and OKTA Identity providers.
Recently we implemented an enhancement in our application store and retrieve secrets from Azure key Vault. The SAML request of SP initiated SSO started failing in the ADFS with the below error.
Exception details:
System.Security.Cryptography.CryptographicException: ID6013:
The signature verification failed.
at Microsoft.IdentityModel.Protocols.XmlSignature.SignedXml.VerifySignature(HashAlgorithm
hash, AsymmetricSignatureDeformatter deformatter, String signatureMethod)
at
Microsoft.IdentityModel.Protocols.XmlSignature.SignedXml.StartSignatureVerification(SecurityKey
verificationKey)
The libraries added to the application as part of the AKV implementation are as below.
accessors-smart-1.2.jar
gson-2.8.6.jar
json-smart-2.3.jar
msal4j-1.4.0.jar
oauth2-oidc-sdk-6.14.jar
Please guide on what is causing the signature in the SAML request to be malformed and not validated.
Regards,
GP