Visit https://console.developers.google.com to set up an OAuth client ID
and secret. See Google’s documentation
on how to create OAUth 2.0 client credentials.
Authorized redirect URIs should be set to the same but
Then, add the following to your
from oauthenticator.google import GoogleOAuthenticator c.JupyterHub.authenticator_class = GoogleOAuthenticator
By default, any domain is allowed to login but you can restrict authorized domains with a list (recommended):
c.GoogleOAuthenticator.hosted_domain = ['mycollege.edu', 'mycompany.com']
You can customize the sign in button text (optional):
c.GoogleOAuthenticator.login_service = 'My College'
Additional notes, that seem quite outdated at the time of writing May 2022, are available about authorizing users part of specific Google Groups are available here. Contributions to update these and re-verify this functionality are most welcome.