You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Server app has the optional groups claim added to token configuration.
But the ID Token Claims table in the Settings doesn't display any groups. There is no "groups" row at all. I'm assuming the application itself also doesn't see any groups for logged in user. So when I enable "Use groups security filter" it simply doesn't answer any questions because all items in my index have groups populated with group ids.
Can you please suggest how to fix this or maybe how to troubleshoot?
The text was updated successfully, but these errors were encountered:
Okay, I think I figured it out on my own. The groups claim should be added to the Client app, not the Server app as the documentation says. @mattgotteiner Does it make sense? Would you be able to fix the document?
And also why enabling group claims is optional? Is there any disadvantage of having it added by default?
Wouldn't it be better done during deployment of the Client App Registration if authentication is enabled, otherwise it's just an extra manual step one has to make. And if one is following the documentation's Automatic Setup section, it's not obvious that adding group claim still needs to be done manually.
@egor-yudkin I think too it shall be added by default . The manageacl.py script shall set group claims when AZURE_ENFORCE_ACCESS_CONTROL=true elsewise ACL can never be enforced on users, does it?
I have following claims on my server SPI
And still in my bearer token after login i don't have an "groups" attribute, which underlines @egor-yudkin point that it does not work as documented, does it?
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
Expected/desired behavior
OS and Version?
azd version?
Mention any other details that might be useful
I've followed the Login and ACL setup document to set up authentication and document-level security.
Server app has the optional groups claim added to token configuration.
![image](https://private-user-images.githubusercontent.com/12784930/314654681-2b87bed5-c663-4c45-a2aa-da7fba804a0f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzAwMzQsIm5iZiI6MTczOTE2OTczNCwicGF0aCI6Ii8xMjc4NDkzMC8zMTQ2NTQ2ODEtMmI4N2JlZDUtYzY2My00YzQ1LWEyYWEtZGE3ZmJhODA0YTBmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA2NDIxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdhODRlMjc1YTY1OWQ5OWU4NmMyMmI1ODNiNDNiNjg2NTVmNzRlZmI2ZWQ5YjdlOGYwYjg5NmM4NWYyMGZiYzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.1GTVebUSKBDfjUBTruuKxTkm3207xO32_h4CSr15u8M)
But the ID Token Claims table in the Settings doesn't display any groups. There is no "groups" row at all. I'm assuming the application itself also doesn't see any groups for logged in user. So when I enable "Use groups security filter" it simply doesn't answer any questions because all items in my index have
groups
populated with group ids.Can you please suggest how to fix this or maybe how to troubleshoot?
The text was updated successfully, but these errors were encountered: