How to fix "IDX10205: Issuer validation failed." on Azure Static Web App (Preview Environment)

Thomas Leumann 0 Reputation points
2024-11-18T00:53:51.52+00:00

When visiting a Preview Environment, setup via github workflow from Pull Request, I receive this error on API endpoint.

{
    "code": 401,
    "message": "IDX10205: Issuer validation failed. Issuer: 'https://**********.centralus.5.azurestaticapps.net/.auth'. Did not match: validationParameters.ValidIssuer: 'https://***********.5.azurestaticapps.net/.auth' or validationParameters.ValidIssuers: 'null' or validationParameters.ConfigurationManager.CurrentConfiguration.Issuer: 'Null'. For more details, see https://aka.ms/IdentityModel/issuer-validation. "
}

It seems the generated hostname where the api is hosted does not match the region specific hostname but I do not know how to change/fix this.

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
990 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.