add a small section for pre/post spawn hooks

This commit is contained in:
Carol Willing
2018-06-08 14:13:45 -07:00
parent 0f000f6d41
commit 3650575797

View File

@@ -208,7 +208,13 @@ class MyAuthenticator(Authenticator):
spawner.environment['UPSTREAM_TOKEN'] = auth_state['upstream_token']
```
## pre_spawn_start and post_spawn_stop hooks
Authenticators uses two hooks, [`pre_spawn_start(user, spawner)`] and
[`post_spawn_stop(user, spawner)`] to add pass additional state information
between the authenticator and a spawner. These hooks are typically used auth-related
startup, i.e. opening a PAM session, and auth-related cleanup, i.e. closing a
PAM session.
## JupyterHub as an OAuth provider