I generated a Bearer Token to interface with my Management Server via the Gateway API, following the commands provided in the documentation.
However, the Bearer Token’s validity is limited by default to 3600 seconds (1 hour). The Token is temporary. I can’t find a command in the Milestone documentation to extend the Token’s validity.
I’d like to generate a permanent Bearer Token.
Do you know of a command to extend the validity of the Bearer Token?
There is no support for extending token lifetimes, and especially not for permanent tokens. What you can do instead is to use a client_id that supports refresh tokens, such as the built-in VmsClient, and then send a request to the token endpoint whenever your token has timed out (or is about to), with the following payload:
What exactly do you mean when you say it doesn’t work? If you login with client_id set to VmsClient, the refresh operation should work using the same client_id.