apigee-edge-drupal icon indicating copy to clipboard operation
apigee-edge-drupal copied to clipboard

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

Open kford opened this issue 1 year ago • 3 comments

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 avatar Jan 10 '24 23:01 kford

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 avatar Jan 11 '24 20:01 ciprian-grigoras

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

ciprian-grigoras avatar Jan 29 '24 17:01 ciprian-grigoras

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.

giteshk avatar Jan 31 '24 04:01 giteshk