-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm not authenticated #36
Comments
Hi, |
Ok, so here is the fix based on this repo. See the branch related to this issue for the actual changes. This branch will not be merged until Microsoft fixes a bug for which this branch has a some-what hacky workaround for. However, I do prefer this solution over the original, since you are now able to connect users/groups to roles in the App Registration rather than have it hard coded in the JS-code. Finally, this solution also includes logging using Application Insights, which is optional. 1. Updated files 1b. (Optional) Connect Insight Analytics:
2. Create custom roles
|
I have used the GetRoles api and staticwebapp.config.json for my static web app. I get authorized and get in, but recieve a 403 error due to authentication. when I check /.auth/me I only get below:
{
"clientPrincipal": {
"identityProvider": "aad",
"userId": "<User_Id>",
"userDetails": "<My_Email",
"userRoles": [
"anonymous",
"authenticated"
]
}
those two roles are the default roles and the one I have configured with AAD groups under roleGroupMappings won't show up.
anyone else is having this issue?
P.S. I have used the config file and api files as it's shown in this repo in my Falkon project.
The text was updated successfully, but these errors were encountered: