Skip to content
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

Add groups permission as an available scope in oidc provider #151

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

utix
Copy link

@utix utix commented Jan 15, 2023

x_groups gives you the groups of an user but you don't know if it is an admin or a member

add x_groups_perm to add a _admin group for admin

{
  "sub": "admi.nistrateur.1942",
  "name": "Admi Nistrateur",
  "email": "[email protected]",
  "study_years": [
    "X1942"
  ],
  "x_groups": [
    "1942",
    "Polytechnique.org",
    "X-Informatique"
  ],
  "x_groups_perm": [
    "1942",
    "Polytechnique.org",
    "Polytechnique.org_admin",
    "X-Informatique"
  ]
}

This allows to easily match groups with other tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant