[#717] Token duration

Migrated from Redmine #717 | Author: Rick de Hoop
Status: Feedback | Priority: High, I’m very impatient | Created: 2021-06-16


Hi,

We are building our system against your API.

Now I have difficulties with your token. The token is only valid for 30 minutes.
I need an token that is valid for a long time (like github tokens etc) for our backend.
Can you tell me how to do this? Or can I use the api keys for this?
Or can you provide me with one.

Thanks,
Rick de Hoop

company code: cloomcom

Redmine Admin wrote:

token lifetime is 30 minutes, you need to use refresh-token API documentation | SimplyBook.me Online Scheduling

Rick de Hoop wrote:

okay,

and is this the same for V2 as for V1 api’s?

Redmine Admin wrote:

this is for V2 only, no refresh method for v1

Rick de Hoop wrote:

So how do I do this for V1?

Redmine Admin wrote:

it simple, same way as you got it first time: you need to go trough authentification again in V1

Rick de Hoop wrote:

okay, thanks.

(Short original content)

Rick de Hoop wrote:

one more question redmine :slight_smile:
what is the token lifetime from the refresh token?

thanks

Dmytro Bondarev wrote:

Refresh token can be used only once but the lifetime is not limited.
Token lifetime is 30 minutes.

After token expired you can new token and refresh token by refresh token, that you have.