I am having hard time accessing the Custom Policy that I have hosted on Azure B2C. I am able to generate the metadata for the policy successfully.
I am using SAML2 protocol.
But when my application tries to redirect towards the custom user flow. It is throwing a certificate error below:
System.IdentityModel.Tokens.SecurityTokenValidationException: The X.509 certificate CN=ITMS.TechMDE.onmicrosoft.com is not in the trusted people store. The X.509 certificate CN=ITMS.TechMDE.onmicrosoft.com chain building failed. The certificate that was used has a trust chain that cannot be verified. Replace the certificate or change the certificateValidationMode. A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
Any suggestions or help would be appreciated.