Bearer token lifetime

Hi everyone,
is there a way to handle the time that a bearer token is valid before it expires?

I use the token to make requests to the tasklist api and the response is:
“expires_in”: 300,

Can I adjust this to my needs?
Thank you!

You have to configure your identity provider so that it issues token that are valid for a longer period of time. But you should always be prepared to handle the case that the token has expired.

KeyCloak is used to manage users, apps, tokens, etc. If you are running Camunda 8 Self Managed as I believe, You can login to log in with the user admin and password admin (those are the values defined in the Docker compose file provided by Camunda in case you did not change them)

And once you are logged in, go to ‘Real Settings’ → Tab ‘Tokens’ . There you can change the access token lifespan.