-
Notifications
You must be signed in to change notification settings - Fork 365
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
[Generic] Add support for manage_groups
#708
Conversation
Thanks for submitting your first pull request! You are awesome! 🤗 |
manage_groups
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
This works for me. If anyone has an objection to bumping the minimum hub version to 2.2 (March, 2022), the check can be manage_groups = getattr(self, "manage_groups", False)
.
Added test to exercise this, which resulted in fixing a bug in the type of the groups field, and matching #710 in handling pre-hub-2.2 behavior. |
Hmm... something might not be quite right yet.. I just tried testing this, by instrumenting
I tested this with my AWS Cognito user pool, making sure to set:
When I log in, the pod logs include the message (from (The instrumented logs affirm that The
I then decoded the JWT id_token from the instrumented logs. The payload included all the expected claims, such as
(FWIW, I confirmed the (In the instrumented logs, So as far as AWS Cognito is concerned, the group membership is definitely available in the OAuth (OIDC?) ID token, but it unfortunately seems to get stripped out from what is passed to The |
oauthenticator/oauthenticator/oauth2.py Lines 861 to 864 in ee52a6d
https://docs.aws.amazon.com/cognito/latest/developerguide/userinfo-endpoint.html
oauthenticator/oauthenticator/generic.py Lines 141 to 142 in ee52a6d
Maybe overriding subclassing and overiding |
Just wanted to check in to see if there's anything more to do to move this along |
I've opened a PR to bump the minimum JupyterHub version #720 |
Addresses #706