We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 612b97f commit a1074adCopy full SHA for a1074ad
1 file changed
oauthenticator/azuread.py
@@ -4,7 +4,6 @@
4
5
import os
6
7
-import jwt
8
from jupyterhub.auth import LocalAuthenticator
9
from traitlets import Unicode, default
10
@@ -66,15 +65,9 @@ def _authorize_url_default(self):
66
65
def _token_url_default(self):
67
return f"https://login.microsoftonline.com/{self.tenant_id}/oauth2/token"
68
69
- async def token_to_user(self, token_info):
70
- id_token = token_info['id_token']
71
- decoded = jwt.decode(
72
- id_token,
73
- options={"verify_signature": False},
74
- audience=self.client_id,
75
- )
76
-
77
- return decoded
+ @default("userdata_from_id_token")
+ def _userdata_from_id_token_default(self):
+ return True
78
79
80
class LocalAzureAdOAuthenticator(LocalAuthenticator, AzureAdOAuthenticator):
0 commit comments