Skip to content

Commit

Permalink
update jupyterhub user url
Browse files Browse the repository at this point in the history
/authorizations/token deprecated since 2.0 in 2021
  • Loading branch information
minrk committed Feb 3, 2025
1 parent cb9ecac commit 432e4d5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dask-gateway-server/dask_gateway_server/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,7 @@ async def authenticate(self, request):
if token is None:
raise unauthorized("jupyterhub")

url = "{}/authorizations/token/{}".format(
self.jupyterhub_api_url,
quote(token, safe=""),
)
url = f"{self.jupyterhub_api_url}/api/user"

kwargs = {
"headers": {"Authorization": "token %s" % self.jupyterhub_api_token},
Expand Down

0 comments on commit 432e4d5

Please sign in to comment.