Skip to main content

标准OIDC 客户端

OIDC 发现

花门完全完成了OIDC协议。 如果您的应用程序已经运行于另一个 OAuth 2。 (OIDC) 身份提供商通过标准的 OIDC 客户端库,您想要迁移到Casdoor, 使用 OIDC 发现对您来说很容易切换到Casdoor。 Cassdoor's OIDC 发现 URL 是:

<your-casdoor-backend-host>/.众所周知的/openid-configuration

例如,演示站点的 OIDC 发现URL是:https://door.casbin.com/.well known n/openid-configur, 具有以下内容:

很抱歉,
"issuer": "https://door.casbin.com",
"authorization_endpoint": "https://door.casbin.com/login/oauth/authority",
"token_endpoint": "https://door. asbin.com/api/login/oauth/access_token",
"userinfo_endpoint": "https://door.casbin.com/api/get-account",
"jwks_uri": "https://door.casbin. om/api/certs”,
"response_types_supported"[
"id_token"
],
"response_modem_supported": [
"login",
"代码",
"link"
,
"grant_types_supported": [
"password",
"authorization_code"

"subject_types_supported": [
"public"
],
"id_token_signing_alg_values_supported": [
"RS256"
],
"scopes_supported": [
"openid",
"email",
"profile",
"address",
"电话",
"offline_access"
],
"clauss_supported": [
"iss",
"ver",
"sub",
"aud",
"iat",
"exp",
"id",
"type",
"displayName",
"avatar",
"永久性Avatar",
"email",
"电话",
"location",
"联盟",
"title",
"主页",
"bio",
"tag",
"region",
"language",
"记分",
"排名",
"isOnline",
"isAdmin",
"isGlobalAdmin",
"被禁止",
"注册申请",
"ldap"

"request_parameter_supported": true,
"request_object_signing_alg_values_supported": [
"HS256",
"HS384",
"HS512"
]
}

OIDC 客户端库列表

这里我们列出了一些OIDC 客户端库,如Go 和 Java 等语言:

OIDC 客户端库语言链接
go-oidc转至https://github.com/coreos/go-oidc
pac4j-oidcJavahttps://www.pac4j.org/docs/clients/openid-connect.html

上表远远没有完成。 OIDC 客户端库的完整列表请查看更多详情:

  1. https://oauth.net/code/
  2. https://openid.net/
    1. 认证的 OpenID Connect 实现
    2. 未认证的 OpenID Connect 实现