JupyterHub GitAuth 404错误

时间:2018-06-06 12:04:00

标签: github jupyterhub

我将Jupyterhub配置为使用jupyterhub_config.py中的github进行身份验证

from oauthenticator.github import GitHubOAuthenticator
c.JupyterHub.authenticator_class = GitHubOAuthenticator
c.MyOAuthenticator.oauth_callback_url = 'https://52.29.150.250:8000/hub/oauth_callback'
c.MyOAuthenticator.client_id = 'my_client_id'
c.MyOAuthenticator.client_secret = 'my_client_secret'

52.29.150.250是我为jupyterhub码头工人容器服务的实例

通过开始#34;使用Github登录"按钮确实显示,但点击后我得到(来自github)

404 This is not the web page you are looking for.
日志中的

11:51:03.104 - info: [ConfigProxy] 200 GET /api/routes
[I 2018-06-06 11:53:30.745 JupyterHub oauth2:82] OAuth redirect: 'http://52.29.150.250:8000/hub/oauth_callback'
[I 2018-06-06 11:53:30.747 JupyterHub log:122] 302 GET /hub/oauth_login?next= → https://github.com/login/oauth/authorize?redirect_uri=http%3A%2F%2F52.29.150.250%3A8000%2Fhub%2Foauth_callback&client_id=&response_type=code&state=eyJzdGF0ZV9pZCI6ICIwNzQzYmI2ZDJjNGM0YTgzOTRiZTg0ZTJhNDRmNTkzNCIsICJuZXh0X3VybCI6ICIifQ%3D%3D (@81.200.207.97) 2.11ms
11:56:03.105 - info: [ConfigProxy] 200 GET /api/routes

0 个答案:

没有答案