我的访问令牌看起来像这样:
"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,email和配置文件放入“作用域”中,因为如果确实需要获得许可,那么看来我仍然需要首先拥有访问令牌。