7.6.2. 发出请求
要发出请求,只需指定 requested_subject 参数。这必须是有效用户的用户名或用户 ID。如果需要,还可以指定 受众 参数。
curl -X POST \
-d "client_id=starting-client" \
-d "client_secret=the client secret" \
--data-urlencode "grant_type=urn:ietf:params:oauth:grant-type:token-exchange" \
-d "requested_subject=wburke" \
http://localhost:8080/auth/realms/myrealm/protocol/openid-connect/token