We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 971aaad commit ea86029Copy full SHA for ea86029
snake/core/snake_handler.py
@@ -79,7 +79,11 @@ def wrapper( # type: ignore
79
)
80
except:
81
raise web.HTTPError(401)
82
- self.current_user = decoded.get("preferred_username")
+ self.current_user = (
83
+ decoded.get("preferred_username")
84
+ or decoded.get("upn")
85
+ or decoded.get("email")
86
+ )
87
if not self.current_user:
88
89
return method(self, *args, **kwargs)
0 commit comments