我正在关注这个教程https://medium.com/@sairamkrish/keycloak-integration-part-3-integration-with-python-django-backend-5dac3b4a8e4e https://medium.com/@sairamkrish/keycloak-integration-part-3-integration-with-python-django-backend-5dac3b4a8e4e
我的访问令牌看起来像这样:
"realm_access": {
"roles": [
"Engineer",
"offline_access",
"uma_authorization"
]
},
"resource_access": {
"test": {
"roles": [
"super-user"
]
},
"account": {
"roles": [
"manage-account",
"manage-account-links",
"view-profile"
]
}
},
"scope": "openid profile email",
通过 RPT,我知道我可以使用以下方式获得权限/范围
curl -X POST \
http://${host}:${port}/auth/realms/${realm}/protocol/openid-connect/token \
-H "Authorization: Bearer ${access_token}" \
--data "grant_type=urn:ietf:params:oauth:grant-type:uma-ticket" \
--data "audience={resource_server_client_id}"
有没有办法将我创建的授权范围与 openid、电子邮件、个人资料一起添加到“范围”中,因为如果我确实需要获取权限,看起来我仍然需要首先拥有访问令牌。
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)