Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expiration Time Base On Grant Type #996

Closed
GeminPatel opened this issue Oct 26, 2017 · 3 comments
Closed

Expiration Time Base On Grant Type #996

GeminPatel opened this issue Oct 26, 2017 · 3 comments

Comments

@GeminPatel
Copy link

Feature: To provide different expiration to tokens based on different grant type.

Why?: We may want different expiration time for client_credentials, password, and implicit. Password tokens may have 1 hr of expiry while Client Credential token may have 1 day of expiry.

Do you guys think this is possible/feasible feature to implement?

PS: We may also keep these expiry times per client in a json column in the DB.

@kapilmittal
Copy link

+1 for this feature.
I also need to provide short lived user tokens and relatively long lived client tokens in my oauth app.

Would you guys be interested in a PR for the same?

@nbulaj
Copy link
Member

nbulaj commented Mar 5, 2018

Hi @kapilmittal . Feel free to send a PR with this feature. I think it must be a configurable lambda that must be used optionally (if set) for all strategies

@nbulaj
Copy link
Member

nbulaj commented Mar 12, 2018

Merged in 55439ee

@nbulaj nbulaj closed this as completed Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants