Hi everyone,
I am trying to fetch a token I previously created via the Jupyter Hub REST API.
However, when I fetch the tokens for the user at the route:
/hub/api/users/52f15d0b-fba8-4026-9bd1-02abb03438fa/tokens
I get the following reply:
{
"user": "52f15d0b-fba8-4026-9bd1-02abb03438fa",
"id": "a958",
"kind": "api_token",
"roles": [],
"scopes": [
"servers!user=52f15d0b-fba8-4026-9bd1-02abb03438fa",
"read:servers!user=52f15d0b-fba8-4026-9bd1-02abb03438fa",
"read:tokens!user=52f15d0b-fba8-4026-9bd1-02abb03438fa",
"read:users:name!user=52f15d0b-fba8-4026-9bd1-02abb03438fa",
"users:activity!user=52f15d0b-fba8-4026-9bd1-02abb03438fa",
"read:users:groups!user=52f15d0b-fba8-4026-9bd1-02abb03438fa",
"delete:servers!user=52f15d0b-fba8-4026-9bd1-02abb03438fa",
"access:servers!user=52f15d0b-fba8-4026-9bd1-02abb03438fa",
"read:users:activity!user=52f15d0b-fba8-4026-9bd1-02abb03438fa",
"tokens!user=52f15d0b-fba8-4026-9bd1-02abb03438fa",
"read:users!user=52f15d0b-fba8-4026-9bd1-02abb03438fa"
],
"created": "2023-12-02T17:15:36.162131Z",
"last_activity": "2023-12-02T18:27:43.084793Z",
"expires_at": null,
"note": "Requested via api by user admin",
"session_id": null,
"oauth_client": "JupyterHub"
}
It does not include the token
field for me to reuse the token.