Jwt token Issuer validation failed
Our project involves a static website that uses ReactApp for the frontend and connects to APIM APIs through APIM Management integration with the static web app. We also implemented an authentication mechanism for the website using Azure AAD B2C that has Custom Policies for signup,signin,signout etc.,
We created app registration for static web app in B2C and set the "acceptedVersion" to 2 in the manifest file. On APIM, we use the "validate-Jwt" policy to verify the B2C token.
The token generation was success however its getting failed at APIM validation.
Issue:
IDX10205: Issuer validation failed. Issuer: 'https://identity.2.azurestaticapps.net/.auth'. Did not match: validationParameters.ValidIssuer: '' or validationParameters.ValidIssuers: 'https://identity.4.azurestaticapps.net/.auth'.