So i am trying to deploy Jupyterhub to teach students about EEG processing. I have succesfully deployed a jupyterhub installation using the guide Adding Google OAuth and system service to a Jupyter Hub server - Python for Undergraduate Engineers, add google oauth and system service to jupyterhub on
but i am stuck at google oauth stage.
I have followed the instructions step by step, and added this code to my jupyterhub_config.py:
from oauthenticator.google import LocalGoogleOAuthenticator
c.JupyterHub.authenticator_class = LocalGoogleOAuthenticator
c.LocalGoogleOAuthenticator.create_system_users = True
c.LocalGoogleOAuthenticator.hosted_domain = ['my domain name', 'my domain name']
c.LocalGoogleOAuthenticator.login_service = 'Google Login'
c.LocalGoogleOAuthenticator.oauth_callback_url = 'my domain name/oauth_callback'
c.LocalGoogleOAuthenticator.oauth_client_id = 'xxxx'
c.LocalGoogleOAuthenticator.oauth_client_secret = 'xxxxx'
#c.JupyterHub.cookie_secret_file = 'my cookie secret'
c.Authenticator.add_user_cmd = ['adduser', '-q', '--gecos', '""', '--disabled-password', '--force-badname']
So at first when i opened the lab there is an option to log in with google but after i click it it returns an Error 400: invalid_request Missing required parameter: client_id error.
I overcame this by changing the oaut_client_id
to client_id
and oauth_client_secret
to client_secret
But now there is a 500 internal server error, i do not know what i should do next.