Skip to content

Commit

Permalink
Merge pull request #721 from yuvipanda/doc
Browse files Browse the repository at this point in the history
Suggest possible config fix when correct scopes aren't requested
  • Loading branch information
yuvipanda authored Mar 23, 2024
2 parents c21ccdf + 77eb6d1 commit 97b470b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oauthenticator/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,9 @@ def user_info_to_username(self, user_info):
else:
username = user_info.get(self.username_claim, None)
if not username:
message = (f"No {self.username_claim} found in {user_info}",)
message = (
f"No {self.username_claim} found in {user_info}. Maybe the hub needs to be configured to request more scopes?",
)
self.log.error(message)
raise ValueError(message)

Expand Down

0 comments on commit 97b470b

Please sign in to comment.