Closed diocas closed 4 years ago
@ricastell This means that the first part of the token update is done. Now you will have a token set as env variable, so in the session startup script you will need to save it to the corresponding file so that EOS already works.
Then, inside the container, you need to create a server extension that, from time to time, polls the user information from JH and updates the token file (I would say 1min before the token expires). The following call (inside the user container) will always return a JSON with a valid access token (unless the session expired):
curl -H "Authorization: token $JUPYTERHUB_API_TOKEN" $JPY_HUB_API_URL/users/$USER
Changes in this PR related to the authenticator:
Closes #13 Closes #11