Jupyterhub: login jupyterhub with token

Created on 21 Nov 2017  Â·  4Comments  Â·  Source: jupyterhub/jupyterhub

I embed jupyterhub in flask,
now when i open jupyterhub from flask app,I have to use username and password in web page.
I want to people who has already login flask app open jupyterhub automatic。

now I can got token use rest api. Is there anyway to do like this?

configuration question

All 4 comments

Yes, you can use tokens with JupyterHub. If you have an admin API token already in your application, you can request a token with:

POST /hub/api/authorizations/token
headers:
    Authorization: token <admin-api-token>
body:
    {'username': 'theirname'}

Thank You very much ,I can get the token now!

then how to login with that token?

did we ever find "then how to login with that token?"

Was this page helpful?
0 / 5 - 0 ratings