Skip to content

Commit

Permalink
add back userid
Browse files Browse the repository at this point in the history
  • Loading branch information
BinamB committed Oct 13, 2021
1 parent eb10510 commit 1683e05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fence/resources/openid/ras_oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ def get_user_id(self, code):
if userinfo.get("UserID"):
username = userinfo["UserID"]
field_name = "UserID"
elif userinfo.get("userid"):
username = userinfo["userid"]
field_name = "userid"
if not username:
self.logger.error(
"{}, received claims: {} and userinfo: {}".format(
Expand Down

0 comments on commit 1683e05

Please sign in to comment.