I'm trying to follow Tutorial: Assign custom roles with a function and Microsoft Graph
I have gone through each step carefully and configured all the setting properly.
But when I clikc Login
I see following error in console
GET https://victorious-island-091e86f10.1.azurestaticapps.net/.auth/login/aad 404 (Not Found)
Looks like the static web page doesn't have access to /.auth
staticwebapp.config.json
has
"auth": {
"rolesSource": "/api/GetRoles",
"identityProviders": {
"azureActiveDirectory": {
"userDetailsClaim": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name",
"registration": {
"openIdIssuer": "https://login.microsoftonline.com/<my tenant id>",
"clientIdSettingName": "AAD_CLIENT_ID",
"clientSecretSettingName": "AAD_CLIENT_SECRET"
},
"login": {
"loginParameters": [
"resource=https://graph.microsoft.com"
]
}
}
}
},