open Edx 中的 raise Exception("Can't fetch setting of a disabled backend/provider.") 是什么?
What is raise Exception("Can't fetch setting of a disabled backend/provider.") in open Edx?
正在尝试集成第三方 Authentication.I 收到如下错误日志。
内部服务器错误:/auth/login/google-oauth2/
追溯(最近一次通话最后一次):......
设置中的文件“/edx/app/edxapp/edx-platform/common/djangoapps/third_party_auth/strategy.py”,第 34 行
引发异常("Can't fetch setting of a disabled backend/provider.")
异常:无法获取已禁用 backend/provider.
引用文档的设置:https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/configuration/tpa/tpa_integrate_open/index.html
tried solutions:https://groups.google.com/forum/#!topic/openedx-ops/M2FuwlCiQtA
对我没有任何作用。
Provider配置如下
Go to <LMS URI>/admin/third_party_auth/oauth2providerconfig/. For example, on devstack, go to http://localhost:8000/admin/third_party_auth/oauth2providerconfig/.
Select Add Provider Configuration (OAuth).
Make sure that Enabled is selected.
Make sure that Visible is selected.
For Icon Class, enter the appropriate value.
For Google, enter fa-google-plus.
For Facebook, enter fa-facebook.
For LinkedIn, enter fa-linkedin.
For Azure, leave the field blank.
For Name, enter the appropriate value.
For Google, enter Google.
For Facebook, enter Facebook.
For LinkedIn, enter LinkedIn.
For Azure, enter Microsoft.
For Backend Name, select the appropriate value.
For Google, select google-oauth2.
For Facebook, select facebook.
For LinkedIn, select linkedin-oauth2.
For Azure, select azuread-oauth2.
添加 slug(更改默认值)
Note
If the value does not appear in the list, either the ENABLE_THIRD_PARTY_AUTH setting or the THIRD_PARTY_AUTH_BACKENDS setting is not configured correctly.
For Client ID, enter the client ID that you noted earlier.
Leave Client Secret blank. Open edX sets the secret through lms.auth.json, which is more secure.
我通过在管理面板中添加 slug › 第三方身份验证 › 提供商配置 (OAuth) › 添加提供商配置 (OAuth) 解决了这个问题。
以前 slug 设置为默认值。
正在尝试集成第三方 Authentication.I 收到如下错误日志。
内部服务器错误:/auth/login/google-oauth2/
追溯(最近一次通话最后一次):......
设置中的文件“/edx/app/edxapp/edx-platform/common/djangoapps/third_party_auth/strategy.py”,第 34 行
引发异常("Can't fetch setting of a disabled backend/provider.")
异常:无法获取已禁用 backend/provider.
引用文档的设置:https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/configuration/tpa/tpa_integrate_open/index.html
tried solutions:https://groups.google.com/forum/#!topic/openedx-ops/M2FuwlCiQtA
对我没有任何作用。
Provider配置如下
Go to <LMS URI>/admin/third_party_auth/oauth2providerconfig/. For example, on devstack, go to http://localhost:8000/admin/third_party_auth/oauth2providerconfig/.
Select Add Provider Configuration (OAuth).
Make sure that Enabled is selected.
Make sure that Visible is selected.
For Icon Class, enter the appropriate value.
For Google, enter fa-google-plus.
For Facebook, enter fa-facebook.
For LinkedIn, enter fa-linkedin.
For Azure, leave the field blank.
For Name, enter the appropriate value.
For Google, enter Google.
For Facebook, enter Facebook.
For LinkedIn, enter LinkedIn.
For Azure, enter Microsoft.
For Backend Name, select the appropriate value.
For Google, select google-oauth2.
For Facebook, select facebook.
For LinkedIn, select linkedin-oauth2.
For Azure, select azuread-oauth2.
添加 slug(更改默认值)
Note
If the value does not appear in the list, either the ENABLE_THIRD_PARTY_AUTH setting or the THIRD_PARTY_AUTH_BACKENDS setting is not configured correctly.
For Client ID, enter the client ID that you noted earlier.
Leave Client Secret blank. Open edX sets the secret through lms.auth.json, which is more secure.
我通过在管理面板中添加 slug › 第三方身份验证 › 提供商配置 (OAuth) › 添加提供商配置 (OAuth) 解决了这个问题。 以前 slug 设置为默认值。