Hi all,

I have tried to cover my bases by searching for any related issues, but so 
far, nothing has helped to resolve this one.

The setup is:
- ubuntu 16.04 vagrant VM
  * public network, bridged
- python 3.6
- jupyterhub 0.7.2 
- Github OAuth

Using the url: https://some_ip, I get the redirect to the Github sign-in 
and like others, once signed in, I get a 404 message with this url:
https://github.com/login/oauth/authorize?redirect_uri=https%3A%2F%2F129.236.40.168%2Fhub%2Foauth_callback&client_id=&response_type=code

I noticed that the client_id is empty.  I read the 
jupyterhub/oauthenticator issue #69 which was an issue with mismatching 
client id's, but I've checked that the client id as it appears on Github is 
the same as in the configuration file.

If I copy+paste the client id from the configuration file into the url I 
get a 500 (internal server error) message.

Here is the jupyterhub_config.py:
c.JupyterHub.ssl_key = '/etc/jupyterhub/jupyterhub.key'
c.JupyterHub.ssl_cert = '/etc/jupyterhub/jupyterhub.crt'
c.JupyterHub.port = 443
c.JupyterHub.hub_ip = 'some_ip'
c.JupyterHub.hub_ip_connect = 'some_ip'

c.JupyterHub.authenticator_class = 'oauthenticator.GitHubOAuthenticator'
c.LocalAuthenticator.create_system_users = True
c.GitHubOAuthenaticator.client_id = os.environ['GITHUB_CLIENT_ID']
c.GitHubOAuthenaticator.client_secret = os.environ['GITHUB_CLIENT_SECRET']
c.GitHubOAuthenticator.oauth_callback_url = 
'https://some_ip/hub/oauth_callback'

I acknowledge that this is very likely a configuration blunder on my part, 
but I am quickly exhausting the low-hanging fruit.

Any help would be appreciated.

Chris 

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/0dbe1e22-f156-4567-9cd1-f6bab768075d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to