使用 Google Oauth 登录 Jupyterhub 时出错

问题描述

所以我正在尝试部署 Jupyterhub 来教学生有关 EEG 处理的知识。我已经使用本指南成功部署了 jupyterhub 安装; https://pythonforundergradengineers.com/add-google-oauth-and-system-service-to-jupyterhub.htmlhttps://lab.golembio.com 上,但我被困在 google oauth 阶段。

我已经一步一步地按照说明进行操作,并将此代码添加到我的 jupyterhub_config.py 中:

from oauthenticator.google import LocalGoogleOAuthenticator

c.JupyterHub.authenticator_class = LocalGoogleOAuthenticator

c.LocalGoogleOAuthenticator.create_system_users = True

c.LocalGoogleOAuthenticator.hosted_domain = ['https://lab.golembio.com','https://golembio.com']
c.LocalGoogleOAuthenticator.login_service = 'Google Login'
c.LocalGoogleOAuthenticator.oauth_callback_url = 'https://lab.golembio.com/hub/oauth_callback'
c.LocalGoogleOAuthenticator.oauth_client_id = 'xxxx'
c.LocalGoogleOAuthenticator.oauth_client_secret = 'xxxxx'
#c.JupyterHub.cookie_secret_file = '/srv/jupyterhub/jupyterhub_cookie_secret'
c.Authenticator.add_user_cmd = ['adduser','-q','--gecos','""','--disabled-password','--force-badname']

ps:我将正确的 oauth 客户端 ID 和 oauth 客户端密码复制并粘贴到代码中...

现在,当我打开 lab.golembio.com 时,有一个选项可以使用 google 登录,但在我点击它后,它返回一个错误

错误 400:invalid_request 缺少必需参数:client_id

我不知道是什么问题?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...