API Token expiration

45 views
Skip to first unread message

William Hargrove

unread,
Oct 3, 2022, 1:36:55 PM10/3/22
to rundeck-discuss
Hi there,

I have been looking at the API and how to access this with an API token. 

When I have generated a token it would seem that the maximum period of validity for a token is 30 days. Is this the case or is it possible to create an API token that does not expire?

Are there any other options in terms of accessing the API with an authentication method that does not expire and that would not have to be renewed so often?

To achieve this, it looks like I would have to use password authentication with the API and retain a session cookie that is passed on each invocation. I could setup a static username/password with admin credentials and authenticate with this?

Many thanks, Will.

rac...@rundeck.com

unread,
Oct 3, 2022, 1:55:38 PM10/3/22
to rundeck-discuss
Hi,

Take a look at this (scroll down a little bit and you will see the "rundeck.api.tokens.duration.max" parameter) explained here.

Regards!
Reply all
Reply to author
Forward
0 new messages