【发布时间】:2023-01-16 22:23:45
【问题描述】:
我正在尝试让django-allauth 对django-oidc-provider 进行用户身份验证:
https://github.com/juanifioren/django-oidc-provider
与许多 OIDC 提供商一样,django-oidc-provider 可以提供一个允许端点发现的文件。例如:
# http://localhost:8010/openid/.well-known/openid-configuration/
{
"issuer": "http://localhost:8010/openid",
"authorization_endpoint": "http://localhost:8010/openid/authorize",
"token_endpoint": "http://localhost:8010/openid/token",
"userinfo_endpoint": "http://localhost:8010/openid/userinfo",
"end_session_endpoint": "http://localhost:8010/openid/end-session",
"introspection_endpoint": "http://localhost:8010/openid/introspect",
"response_types_supported": [
"code",
"id_token",
"id_token token",
"code token",
"code id_token",
"code id_token token"
],
"jwks_uri": "http://localhost:8010/openid/jwks",
"id_token_signing_alg_values_supported": [
"HS256",
"RS256"
],
"subject_types_supported": [
"public"
],
"token_endpoint_auth_methods_supported": [
"client_secret_post",
"client_secret_basic"
]
}
-
是否存在可以解析和使用 OIDC 提供者的
.well-known/openid-configuration响应内容的现有django-allauth提供者类? -
如果没有,是否有一个现有的
django-allauth提供者类可以直接与django-oidc-provider支持的OIDC提供者对话,如果我在我的项目settings.py中将正确的东西放入SOCIALACCOUNT_PROVIDERS? -
如果不是,你会建议我继承/窃取现有的
django-allauth提供者类,以便添加对django-allauth与django-oidc-provider对话的支持?
(这个问题不是 100% 特定于 django-oidc-provider。有人想使用 django-allauth 不支持的其他提供商也会有同样的问题,例如 Akana)
(另见#676)
【问题讨论】:
标签: openid-connect django-allauth