gpt4 book ai didi

oauth - 访问 token 没有 openid 范围

转载 作者:行者123 更新时间:2023-12-01 19:39:39 25 4
gpt4 key购买 nike

我正在做 sso 示例 (travelocity.com) 示例。当我尝试使用此命令通过 oauth 访问 token 访问用户信息时,

curl -k -H "Authorization: Bearer b68ba941c9da3d2644d8a63154d28" https://localhost:9443/oauth2/userinfo?schema=openid

出现以下错误

{"error":"insufficient_scope","error_description":"Access token does not have the openid scope"}

求助,谢谢

最佳答案

当您向授权端点发出第一个请求时,您必须在 scope 请求参数中包含 openidOpenID Connect Core 1.0, 3.1.2.1. Authentication Request说如下。

scope

REQUIRED. OpenID Connect requests MUST contain the openid scope value. If the openid scope value is not present, the behavior is entirely unspecified. Other scope values MAY be present. Scope values used that are not understood by an implementation SHOULD be ignored. See Sections 5.4 and 11 for additional scope values defined by this specification.

关于oauth - 访问 token 没有 openid 范围,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37354555/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com