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

Set the expiration date of credentials based on some value, such as an API Product Custom Attribute #1024

Open
kford opened this issue Jan 10, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@kford
Copy link

kford commented Jan 10, 2024

Is your feature request related to a problem? Please describe.

The need exists to set different expiration dates on credentials based on the consumer type and what product they subscribe to

Describe the solution you would like

Custom Attributes comes to mind. For example, an attribute such as "key_expiry_days" could be set to define how long keys last for a given product

Describe alternatives you have considered

cron job, very inelegant and leaves holes/race conditions

@kford kford added the enhancement New feature or request label Jan 10, 2024
@ciprian-grigoras
Copy link

Thanks Kevin for raising the issue.

As context on our use case, we have various API Products that expose data with different classifications (PII, confidential, public etc), and hence the default expiration dates could vary depending on this classification.

Right now the Apigee Drupal UI has that setting for the key lifetime but it's a "1 size fits all" setting.

apigee_drupal_key_lifetime

@ciprian-grigoras
Copy link

Any update or insight on this feature request ?
Thank you!

@giteshk
Copy link
Member

giteshk commented Jan 31, 2024

We will be adding a new hook to allow developers the ability to set their own custom expiration period.

This should provide anyone the ability to set their own logic based on API Products or any other criteria.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants