Reading SAML config from data table is not working for 1Login


I had integrated the 1login with our custom IDP using SAML 2.0. It is working fine when i read the partner service provider configuration from saml.config. The same is not working when I have the same configuration in the database table (SQL) and getting the error “SAML assertion is not valid.”

One thing i observed from the saml response is the difference in the algorithm
1. Signature method (
2. Digest method (

I have attached the SAML response for both
1. SAML Response - works fine with saml.config
2. SAML Response - not works with database


It’s most likely the SHA-1 vs SHA-256 signature difference that you observed.
Are you setting the DigestMethod and SignatureMethod configuration properties?
They default to SHA-256 unless set explicitly.
If there’s still an issue, please enable SAML trace and send the generated log file as an email attachment to mentioning your forum post.