September 27, 2018 at 3:16 pm #23289prakhash21Participant
How can I change the access token lifetime from default 60s in OpenAM 12? I couldn’t figure out the corresponding configurations. Appreciate if someone could help me to do the necessary changes?
PrakhashSeptember 28, 2018 at 4:06 am #23299prakhash21Participant
I found a config in OAuth2Provider.xml and changed it as below, but seems it’s not reflecting. AM I missing anything or it’s a bug in openAM 12 ?
syntax=”number_range” rangeStart=”0″ rangeEnd=”2147483647″
ThanksOctober 2, 2018 at 6:17 pm #23328William HeplerParticipant
You may want to consider this topic as well that discussed why you may not want to extend the time to great.
That should be the setting, how are you checking if it’s reflected? I don’t believe this would change any old Tokens as they are bearer tokens and exist with it’s settings already set. Are you checking if new tokens have the updated lifetime?October 4, 2018 at 11:17 am #23337Andy CoryParticipant
I don’t have an OpenAM 12 to hand, but surely there is a UI control in the admin console that controls this value for the OAuth2 provider service? I can’t imagine changing the service XML descriptor is the best way to achieve this.
As William says, tokens that have already been generated will have a lifetime of whatever the value was when they are created, stored against the token in the CTS store.
You must be logged in to reply to this topic.