Hello, Ory community! :wave: I was wondering if i...
# talk-hydra
q
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
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
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
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
Is spinning up a hydra instance for each client an option?
h
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
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
https://github.com/ory/hydra/issues/1529 This is the correct discussion but I am not sure what the conclusion is