mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-11 12:03:00 +00:00
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:
@@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user