How to extract data from the access token when using rest api (and not client adapter)?


we are using c# application and I wrote a little project that is invoking the admin rest API with some basic commands.

my current flow is:

  1. GetAccessToken (with admin from master realm)
  2. GetUsers (for a different realm using the access token from step 1)
  3. Reset user password by email (using execute-actions-email endpoint)

I noticed from youtube videos I watched that if you are using a client adapter for keycloak (java, js, etc.) it is possible to parse the access token into the encrypted data in it (such as user data or other custom roles are adding to I

I tried to decode it using a base64 but it doesn’t seem to be that simple.

is it possible to do this in my case? if I’m not using a client adapter?