Add more precise instructions for OAuth

This commit is contained in:
Carol Willing 2016-10-12 05:18:23 -07:00
parent dd964ade79
commit 00068ee64a

View File

@ -108,12 +108,12 @@ by filling out a form on the GitHub site:
In this form, you will specify the OAuth application's callback URL in In this form, you will specify the OAuth application's callback URL in
this format: `https://<myhost.mydomain>/hub/oauth_callback`. this format: `https://<myhost.mydomain>/hub/oauth_callback`.
After submitting the GitHub form, your registered GitHub OAuth application is After you submit the GitHub form, GitHub registers your OAuth application and
assigned a unique Client ID and Client Secret. The Client Secret should be assigns a unique Client ID and Client Secret. The Client Secret should be
kept private. kept private.
You must pass the GitHub OAuth Client ID, Client Secret and OAuth callback url At JupyterHub's runtime, you must pass the GitHub OAuth Client ID, Client
to JupyterHub at runtime. You can do this by either: Secret and OAuth callback url. You can do this by either:
- setting the `GITHUB_CLIENT_ID`, `GITHUB_CLIENT_SECRET`, and - setting the `GITHUB_CLIENT_ID`, `GITHUB_CLIENT_SECRET`, and
`OAUTH_CALLBACK_URL` environment variables when you run the `OAUTH_CALLBACK_URL` environment variables when you run the