SSO Issue: Unable to generate credential

0
Hi everyone,   I’m experiencing an issue with logging in via SSO. I hope someone can offer guidance on how to resolve this.   Here’s the problem: every time I restart the app, I’m unable to log in via SSO, receiving an error message instead. To temporarily fix this, I go to the SAML configuration, open the IDP settings, and click "Save." After that, SSO works as expected.   Unfortunately, the issue reappears after some time. At this point, when trying to log in via SSO, I get the following error: "Unable to validate the SAML message." (This message is displayed on my screen)   Here are the relevant log details: Log on startup: ERROR - SAML_SSO: Unable to initialize the Servlet configuration org.opensaml.saml.common.SAMLException: Unable to find an Entity Descriptor with id: https://sts.windows.net/035a9c41-e9a9-49e8-955e-c63f0549fe3c/ saml20.implementation.metadata.IdpMetadata.getIdpEntityDescriptor(IdpMetadata.java:167) saml20.implementation.metadata.IdpMetadata.updateConfiguration(IdpMetadata.java:56) saml20.implementation.SAMLRequestHandler.initServlet(SAMLRequestHandler.java:96)   Log login SSO (when error occurs after some time): ERROR - SAML_SSO: Unable to generate credential  com.mendix.storage.FileNotFoundInStorageException: LocalFileSystemStore:: File does not exist for key: ba27de91-74b3-4f3e-b931-ff3d1a3da24f   com.mendix.storage.localfilesystem.internal.LocalFileSystemStore.getFileDocumentAsFile(LocalFileSystemStore.scala:142) ERROR - SAML_SSO: Unable to validate Response, see SAMLRequest overview for detailed response. Error: Credential cannot be null net.shibboleth.utilities.java.support.logic.ConstraintViolationException: Credential cannot be null   Has anyone else encountered this issue, or does anyone have suggestions on how to solve it?    Please note that the app runs on SAP BTP.   Thanks in advance for any help!   SAML20 version 3.6.7.
asked
2 answers
0

Hi Arman,

Is this issue happening every time after the deployment of your new build?

If yes, it means your IDP file is getting deleted after each deployment. In that case, you will need to redo the SAML configuration after every deployment. We also faced the same error when the app was deployed on AWS

answered
0

Hi Arman,

 

Try enter the secret key from SSO again. Caused by mentioned Credential cannot be null.

 

Hope it helps!

Thanks & Regards,

Manikandan K

answered