In my backend service, I require a token that contains the "roles" claim in the client credentials flow. So I've tried to setup App ID as described in the article about Assigning roles to an application, unfortunately, I didn't succeed in this.
Steps were done for setup:
- Register the application with a "regular web application" type
- Create a role
- Assing role to the application like described in docs
- Extend token config with "accessTokenClaims": [ { "source": "roles" } ]
- Retrieve token for by Postman
Used parameters:
- URL: https://eu-de.appid.cloud.ibm.com/oauth/v4/{tenantid}/token
- Body: form data and form data encoded(tried both)
- grant type: client_credentials;
- Basic auth: username: client_id; password: client_secret
I also tried to use the body with form data and form data encoded(tried both)
- grant type: client_credentials;
- client_id: client_id
- client_secret: client_secret