https://www.ory.sh/ logo
#talk-hydra
Title
# talk-hydra
q

quick-bird-98726

12/20/2021, 1:46 PM
Hello, Ory community! 👋 I was wondering if it is possible to set expiration on access tokens per client? I.e. Client X is allowed to create access tokens that expires in 1h/ 1week/1month/never expire.
h

high-kitchen-93388

02/08/2022, 12:25 PM
Hi, any update on this request? Want the same feature.
@magnificent-energy-493
Would like to modify the expiration times in the login consent app during accecptConsentRequest step instead of using config values which are set during start time.
m

magnificent-energy-493

02/08/2022, 12:42 PM
Hello Sahurya, can you tell me a bit more about the use case or did you see an issue already open for this feature ? Those might be related, depending on what you want to achieve: https://github.com/ory/hydra/issues/1529 https://github.com/ory/hydra/issues/2474 https://github.com/ory/hydra/issues/2889
h

high-kitchen-93388

02/08/2022, 12:48 PM
Thanks @magnificent-energy-493. The use case is that, we have a lot of external clients who are using the tokens generated by ory, now business wants me to make the token expiration times modifiable per client basis. It could be either during client registration or just before issuing the tokens using hydra-admin sdk.
m

magnificent-energy-493

02/08/2022, 12:52 PM
Is spinning up a hydra instance for each client an option?
h

high-kitchen-93388

02/08/2022, 12:52 PM
Hahaha, no that won't be possible. I went over the discussions and now I think what I am asking won't be possible either right?
m

magnificent-energy-493

02/08/2022, 12:54 PM
I am not 100% sure, maybe there is some discussion or issue I am missing now, I can see to take a look later.
h

high-kitchen-93388

02/08/2022, 12:54 PM
https://github.com/ory/hydra/issues/1529 This is the correct discussion but I am not sure what the conclusion is