Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information. Update docs and examples for the slash at the end of the prefix Oct 31, 2017 run autoformat Feb 19, 2019

Authenticating a flask service with JupyterHub

Uses to authenticate requests with the Hub in a flask application.


  1. Launch JupyterHub and the whoami service with

     jupyterhub --ip=
  2. Visit or

After logging in with your local-system credentials, you should see a JSON dump of your user info:

 "admin": false,
 "last_activity": "2016-05-27T14:05:18.016372",
 "name": "queequeg",
 "pending": null,
 "server": "/user/queequeg"

This relies on the Hub starting the whoami service, via config (see

A similar service could be run externally, by setting the JupyterHub service environment variables:

You can’t perform that action at this time.