Closed timiil closed 4 years ago
Hello, as we know, in the 'Fine Authorization Mode' in a client, we need to retrieve all resources owning by some user. so i have found the api can do this work:
curl -X POST http://xxxxx.com/auth/realms/{realm}/protocol/openid-connect/token \ --data "grant_type=urn:ietf:params:oauth:grant-type:uma-ticket" --data "response_mode=permissions" --data "audience={clientID}" -H "Authorization: Bearer $token" [{"rsid":"48c9b227-87ef-46f9-9fd5-26c6f76a882e","rsname":"Default Resource"},{"rsid":"edb5453a-96be-46c7-9a34-cd966237bd55","rsname":"School"},{"rsid":"6441ddaa-5730-456b-a310-2455e0c4aa27","rsname":"Grade"},{"scopes":["backup","changeStudentInfo","remove"],"rsid":"8b61de15-a6b9-4b64-be1d-0af9481c0d71","rsname":"Student"}]
further more, i hade add some code into Keycloak.Net project and tested, may i PR for this ?
Thanks for the contribution! I moved the call to Client and renamed it GetResourcesOwnedByClientAsync.
Hello, as we know, in the 'Fine Authorization Mode' in a client, we need to retrieve all resources owning by some user. so i have found the api can do this work:
further more, i hade add some code into Keycloak.Net project and tested, may i PR for this ?