curl-X POST \
http://${host}:${port}/auth/realms/${realm}/protocol/openid-connect/token \--data"grant_type=urn:ietf:params:oauth:grant-type:uma-ticket"\--data"claim_token=ewogICAib3JnYW5pemF0aW9uIjogWyJhY21lIl0KfQ=="\--data"claim_token_format=urn:ietf:params:oauth:token-type:jwt"\--data"client_id={resource_server_client_id}"\--data"client_secret={resource_server_client_secret}"\--data"audience={resource_server_client_id}"
Copy to ClipboardCopied!Toggle word wrapToggle overflow
claim_token 参数需要一个类似于以下示例的 BASE64 编码 JSON:
{
"organization" : ["acme"]
}
{
"organization" : ["acme"]
}
Copy to ClipboardCopied!Toggle word wrapToggle overflow