Skip to content

Commit

Permalink
Fix some missed renames
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Apr 25, 2024
1 parent c93ac7f commit 23b1c80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions oauthenticator/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,16 +1046,16 @@ def build_auth_state_dict(self, token_info, user_info):

def get_user_groups(self, auth_model: dict):
"""
Returns a set of groups the user belongs to based on claim_groups_key
Returns a set of groups the user belongs to based on auth_model_groups_key
and provided auth_model.
- If claim_groups_key is a callable, it is meant to return the groups
- If auth_model_groups_key is a callable, it is meant to return the groups
directly.
- If claim_groups_key is a nested dictionary key like
- If auth_model_groups_key is a nested dictionary key like
"permissions.groups", this function returns
auth_model["permissions"]["groups"].
"""
if callable(self.claim_groups_key):
if callable(self.auth_model_groups_key):
return set(self.auth_model_groups_key(auth_model))
try:
return set(
Expand Down

0 comments on commit 23b1c80

Please sign in to comment.