OAuth AccessToken expiry time

Imported Google Group message. Original thread at: Redirecting to Google Groups Import Date: 2016-01-19 21:44:29 +0000.
Sender:Prashanth Bonthu.
Date:Tuesday, 19 January 2016 17:39:13 UTC.

Hello,

We are trying to use tyk as our gateway and with the Access token OAuth flow.

Currently the access_token that’s returned from calling ‘tyk/oauth/authorize-client/’ has an ‘expires_in’ time 3600, which I assume means the access_token will expire in 1hour .

Is there an option to specify the time we want it to expire in ? as in specify the access_token is valid for 24hours.

Thanks,
Prashanth

Imported Google Group message.
Sender:[email protected].
Date:Tuesday, 19 January 2016 17:58:22 UTC.

Yes

add key “oauth_token_expire” to gateway configuration file i.e., tyk.conf and set its value in seconds

  • show quoted text -
1 Like