Regarding OAuth access token


i have attached an image regarding authorization flow , i have successfully generated access token using client id and client secret when i try to hit rest api (https://localhost/api/magesh/asset/4aiVKItHwbtYC2oJzrcAkl) iam getting 401 unauthorized error may i know the reason , even though it is a service user

Hi!

Does the service user have the role READ_ASSETS assigned?
You can configure this in the Manager UI on the Users page.
We use Keycloak roles for permissions internally, such as handling asset access.
If you could share details on this service user would be great.

Be aware that the access tokens have a very limited lifespan. (as shown in the HTTP response)