Loading...
Loading...
Compare original and translation side by side
nameemailpicturenameemailpicture// Request
GET /authorize?
response_type=code&
scope=openid profile email& <-- 'openid' scope triggers OIDC
client_id=...&
redirect_uri=...
// Token Response
{
"access_token": "SlAV32hkKG...", // For API access
"id_token": "eyJ0eXKiOiJK...", // JWT containing User Profile
"expires_in": 3600
}// 请求
GET /authorize?
response_type=code&
scope=openid profile email& <-- 'openid' 作用域会触发 OIDC 流程
client_id=...&
redirect_uri=...
// 令牌响应
{
"access_token": "SlAV32hkKG...", // 用于 API 访问
"id_token": "eyJ0eXKiOiJK...", // 包含用户信息的 JWT
"expires_in": 3600
}/userinfo/userinfoopenidprofileemailopenidprofileemail/.well-known/openid-configuration/.well-known/openid-configurationaudissnoneaudissnone| Error | Cause | Solution |
|---|---|---|
| Scope | Add |
| Wrong Public Key. | Refresh JWKS from the discovery endpoint. |
| 错误信息 | 原因 | 解决方案 |
|---|---|---|
| 未请求 | 在作用域中添加 |
| 公钥错误 | 从发现端点刷新 JWKS。 |