mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
update oauthenticator to 17
azuread no longer has its own dependencies
This commit is contained in:
@@ -149,9 +149,10 @@ If it is not provided as array, there is an easy fix. Just add these lines to
|
|||||||
your `awscognito.py`:
|
your `awscognito.py`:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def claim_groups_key_func(user_data_resp_json):
|
def groups_key_func(auth_state):
|
||||||
return [user_data_resp_json['custom:department']]
|
return [auth_state['oauth_user']['custom:department']]
|
||||||
|
|
||||||
c.GenericOAuthenticator.claim_groups_key = claim_groups_key_func
|
c.GenericOAuthenticator.manage_groups = True
|
||||||
|
c.GenericOAuthenticator.auth_state_groups_key = groups_key_func
|
||||||
c.GenericOAuthenticator.allowed_groups = ["AA BB CC", "AA BB DD"]
|
c.GenericOAuthenticator.allowed_groups = ["AA BB CC", "AA BB DD"]
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ jupyterhub-firstuseauthenticator>=1.0.0,<2
|
|||||||
jupyterhub-nativeauthenticator>=1.2.0,<2
|
jupyterhub-nativeauthenticator>=1.2.0,<2
|
||||||
jupyterhub-ldapauthenticator>=1.3.2,<2
|
jupyterhub-ldapauthenticator>=1.3.2,<2
|
||||||
jupyterhub-tmpauthenticator>=1.0.0,<2
|
jupyterhub-tmpauthenticator>=1.0.0,<2
|
||||||
oauthenticator[azuread]>=16.0.4,<17
|
oauthenticator>=17,<18
|
||||||
jupyterhub-idle-culler>=1.2.1,<2
|
jupyterhub-idle-culler>=1.2.1,<2
|
||||||
|
|
||||||
# pycurl is installed to improve reliability and performance for when JupyterHub
|
# pycurl is installed to improve reliability and performance for when JupyterHub
|
||||||
|
|||||||
Reference in New Issue
Block a user