Fix docstring indentation and reference to flask example in docs

example using flask for Implementing your own Auth with JupyterHub was not displayed
This commit is contained in:
IvanaH8
2021-06-18 11:07:33 +02:00
parent e9686376ca
commit 12ffc42114
2 changed files with 3 additions and 3 deletions

View File

@@ -297,7 +297,7 @@ You will only get to this stage if the user has the required `access:services!se
To retrieve the user model for the token, make a request to `GET /hub/api/user` with the token in the Authorization header. To retrieve the user model for the token, make a request to `GET /hub/api/user` with the token in the Authorization header.
For example, using flask: For example, using flask:
```{literal-include} ../../../examples/service-whoami-flask/whoami-flask.py ```{literalinclude} ../../../examples/service-whoami-flask/whoami-flask.py
:language: python :language: python
``` ```

View File

@@ -836,8 +836,8 @@ class HubAuthenticated:
Default values include: Default values include:
- 'access:services', 'access:services!service={service_name}' for services - 'access:services', 'access:services!service={service_name}' for services
- 'access:servers', 'access:servers!user={user}', - 'access:servers', 'access:servers!user={user}',
'access:servers!server={user}/{server_name}' 'access:servers!server={user}/{server_name}'
for single-user servers for single-user servers
If hub_scopes is not used (e.g. JupyterHub 1.x), If hub_scopes is not used (e.g. JupyterHub 1.x),
these additional properties can be used: these additional properties can be used: