Azure / Azure/static-web-apps

AADSTS900971: No reply address provided.

Open
#1,100 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

I want to enable authentication via Azure Active Directory (AAD) for my static web app. However, after authenticating I receive the following error while I do have registered a redirect URI/reply URL:

![afbeelding](https://user-images.githubusercontent.com/17315909/224270932-797387ac-82fe-4916-8647-e6860fddaddc.png)

See here the redirect URI that I registered:

![redirect_url_azure](https://user-images.githubusercontent.com/17315909/224272447-2d3209cb-d322-4d4f-9dc9-7ca2e9ab3d19.png)

And here configuration of my static web app (I replace my tenant ID for TENANT_ID here):

```
{
"auth": {
"identityProviders": {
"azureActiveDirectory": {
"registration": {
"openIdIssuer": "https://login.microsoftonline.com/TENANT_ID/v2.0",
"clientIdSettingName": "AZURE_CLIENT_ID",
"clientSecretSettingName": "AZURE_CLIENT_SECRET"
}
}
}
},
"navigationFallback": {
"rewrite": "index.html"
},
"routes": [
{
"route": "/login",
"redirect": "/.auth/login/aad",
"allowedRoles": ["anonymous", "authenticated"]
},
{
"route": "/.auth/login/github",
"statusCode": 404
},
{
"route": "/.auth/login/twitter",
"statusCode": 404
},
{
"route": "/logout",
"redirect": "/.auth/logout",
"allowedRoles": ["anonymous", "authenticated"]
},
{
"route": "/*",
"allowedRoles": ["authenticated"]
}
],
"responseOverrides": {
"401": {
"redirect": "/login",
"statusCode": 302
}
},
"globalHeaders": {
"content-security-policy": "default-src https: 'unsafe-eval' 'unsafe-inline'; object-src 'none'"
},
"mimeTypes": {
".json": "text/json"
}
}
```

The web app is deployed using a pipeline in azure DevOps (using AzureStaticWebApp@0 task). Without the authentication my static web app is working fine.

Does anyone know what's causing this error? It seems like it does not use the registered URI but I don't know how to debug this.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.