IBM Cloud AppID: Application role doesn't returns in JWT

71 Views Asked by At

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:

  1. Register the application with a "regular web application" type
  2. Create a role
  3. Assing role to the application like described in docs
  4. Extend token config with "accessTokenClaims": [ { "source": "roles" } ]
  5. Retrieve token for by Postman

Used parameters:

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
0

There are 0 best solutions below