Skip to content

Using AAD Group #74

Answered by RyanPicco
lune94 asked this question in Q&A
Discussion options

You must be logged in to vote

@lune94 Though I'm not using groups in this exact way, you can define app roles in the manifest

So after defining the roles you can assign roles to your users (or in your case groups) which are allowed access, then their role will be returned in id_token_claims as "roles", from there you should be able to gate access based on their role value being in a list of acceptable roles, you could write this into a decorator /w args for easy application to each endpoint.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rayluo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested Answered
3 participants
Converted from issue

This discussion was converted from issue #23 on January 22, 2022 00:54.