What is the verification key in a SAMLv2 IdP used for?
-
Hi everyone,
I set up a SAMLv2 identity provider in FusionAuth and also generated a dummy certificate, which I linked to this IdP as the verification key. Then I uploaded the correct certificate, but did not set this as the new verification key. However, I was able to login, so I assume, that the correct - later uploaded - certificate was used to verify the signature.
So my question is: What is the purpose of the verification key in the identity provider?
Thank you!
-
@bianca-wittig Can you please describe the steps you are taking in a little more detail. It may help us understand your question a little better.
-
I used this guide to setup and EntraID IdP: https://fusionauth.io/docs/lifecycle/authenticate-users/identity-providers/enterprise/azure-ad-saml. Except that I forgot to configure the verification key in my SAML IdP. So here are the steps in detail:
- generate a dummy/placeholder certificate in Key Master
- create a SAML2 IdP with this certificate
- download the correct certificate from EntraID
- import this certificate into Key Master
- enable the SAML2 IdP
- authenticate successfully via this SAML2 IdP
So I skipped adding the correct certificate to the SAML2 IdP and I was not expecting to be able to login, but it worked. If I remove the correct certificate from Key Master again, I cannot authenticate successfully.
Does this help?
-