我正在做 sso 示例(travelocity.com)示例。当我尝试使用此命令通过 oauth 访问令牌访问用户信息时,
卷曲-k -H“授权:承载b68ba941c9da3d2644d8a63154d28”https://localhost:9443/oauth2/userinfo?schema=openid https://localhost:9443/oauth2/userinfo?schema=openid
我收到以下错误
{“error”:“insufficient_scope”,“error_description”:“访问令牌确实
没有 openid 范围”}
请帮忙,谢谢
对于那些试图把scope
在请求参数中,它不起作用,将其放在请求正文中POST /token
request
curl --location --request POST 'http://keycloak.local.webapp/realms/WordSpreads/protocol/openid-connect/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=word-spreads-web' \
--data-urlencode 'username=bob' \
--data-urlencode 'password=king' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'scope=openid'
我认为改变会发生keycloak-1902-发布 https://www.keycloak.org/2022/09/keycloak-1902-released
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)