-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Github Authentication Redirects to 404 Page not found #193
Comments
Could you explain again what exactly the problem is? From your subject it sounds you end up on a 404 page (on GitHub or on the hub?) but from your text all you say is that the hub redicrects you to a github.com page which is exactly what should happen. |
We actually figured out the issue, we had to add the client id and secret client id as well as the auth callback url in the env file. Then echoing the client id got me through to authorization. |
For anyone else having this problem be wary of what authenticator you are using. The
should be
|
Oh I made the same mistake. Some other examples give the correct information about the configuration, but github is missing. I think this should be added. |
Hi AKmoore7 - can you elaborate on this approach? I tried it but not working for me. |
I had the same issue, ended up fixing by (clientid, clientiSecret and callbackUrl were what's missing)
|
I made a mistake :( services:
jupyterhub:
build: jupyterhub
image: jupyterhub_img
container_name: jupyterhub
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- jupyterhub_data:/srv/jupyterhub
environment:
- DOCKER_JUPYTER_CONTAINER=jupyterlab_img
- DOCKER_NETWORK_NAME=${COMPOSE_PROJECT_NAME}_default
- OAUTH_CALLBACK_URL //add
- OAUTH_CLIENT_ID //add
- OAUTH_CLIENT_SECRET //add
- HUB_IP=jupyterhub
- HOST |
I'm closing this as it's quite old and it's a support issue. If you're still having problems please post on the Jupyter Community Forum. Thanks! |
I am not using the clientId, below parameters I am passing |
Currently jupyterhub is running when logging in using PAM, but we are trying to configure github authentication. When running "Sign in with Github" shows up but when clicked it takes the user to "https://github.com/login/oauth/authorize?redirect_uri=https%3A%2F%2Fjupyter2.uiuc-bdeep.org%2Fhub%2Foauth_callback&client_id=&response_type=code&state=eyJuZXh0X3VybCI6ICIiLCAic3RhdGVfaWQiOiAiZTdjNGU1YTkzZGU0NDViMGE4ZWU0NzY3ODY1Y2I1YmUifQ%3D%3D"
This is our config file:
Configuration file for jupyterhub
c.JupyterHub.ssl_key = '/etc/letsencrypt/live/jupyter2.uiuc-bdeep.org/privkey.pem'
c.JupyterHub.ssl_cert = '/etc/letsencrypt/live/jupyter2.uiuc-bdeep.org/fullchain.pem'
c.JupyterHub.port = 443
c.Spawner.notebook_dir = '~/assignments'
from oauthenticator.github import GitHubOAuthenticator
c.JupyterHub.authenticator_class = GitHubOAuthenticator
c.MyOAuthenticator.oauth_callback_url = 'https://jupyter2.uiuc-bdeep.org/hub/oauth_callback'
c.MyOAuthenticator.client_id = '7959f7faeee887a00c71'
c.MyOAuthenticator.client_secret = 'Client Secret'
c.Authenticator.whitelist = {'akmoore7','danielrychel' }
c.Authenticator.admin_users = {'Akmoore7','danielrychel'}
I'm not sure what is going on at the moment, I made sure the client id was inputted correctly. There are no errors just this log statement:
302 GET /hub/oauth_login?next= → https://github.com/login/oauth/authorize?redirect_uri=https%3A%2F%2Fjupyter2.uiuc-bdeep.org%2Fhub%2Foauth_callback&client_id=&response_type=code&state=eyJuZXh0X3VybCI6ICIiLCAic3RhdGVfaWQiOiAiZTdjNGU1YTkzZGU0NDViMGE4ZWU0NzY3ODY1Y2I1YmUifQ%3D%3D (@::ffff:141.142.60.194) 1.29ms
Also here is the oAuth application page, I dont think there is a problem there, but I would more than happy to be wrong:![screen shot 2018-06-07 at 11 11 24 am](https://user-images.githubusercontent.com/19716710/41112091-9822bfb6-6a43-11e8-8a42-2f32b921e8f4.png)
The text was updated successfully, but these errors were encountered: