add whoami-oauth-basic example

implements oauth without inheriting from HubOAuthenticated

should be easier to parse for users with alternate oauth implementations
This commit is contained in:
Min RK
2018-02-28 14:10:02 +01:00
parent a58bea6d93
commit 8b3c2fa12f
4 changed files with 161 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ if not api_token:
raise ValueError("Make sure to `export JUPYTERHUB_API_TOKEN=$(openssl rand -hex 32)`")
# tell JupyterHub to register the service as an external oauth client
c.JupyterHub.services = [
{
'name': 'external-oauth',