-
-
Notifications
You must be signed in to change notification settings - Fork 356
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
[feature] Custom Admin OIDC Groups #1121
Labels
enhancement
New feature or request
Comments
I think this was solved in #961 gotosocial/internal/api/auth/callback.go Lines 285 to 296 in 282be6f
gotosocial/example/config.yaml Lines 693 to 696 in 282be6f
|
Ah yes, thanks! Will close this now then. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem ?
Currently, internal/api/client/auth/callbacks.go uses a hardcoded list of groups to determine if the user is an admin (namely
"admin"
and"admins"
). For some IDPs, groups may be returned as more opaque identifiers, rather than human-friendly names. Therefore, such users are unable to be made admins without manual intervention.Describe the solution you'd like.
The list of group names that are made admins should be configurable.
Describe alternatives you've considered.
None.
Additional context.
If this feature is of interest, I would be glad to contribute code implementing it.
The text was updated successfully, but these errors were encountered: