hyperledger / aries-acapy-plugins

aries-acapy-plugins
https://hyperledger.github.io/aries-acapy-plugins/
Apache License 2.0
2 stars 24 forks source link

[multitenant_provider] Add option for a ttl when request a tenant token #104

Open esune opened 7 months ago

esune commented 7 months ago

Transferring from https://github.com/bcgov/traction/issues/972 now that the multitenant_provider plugin is hosted here.

Quoting @PatStLouis

I would like to see an optional ttl field in the request body for the /multitenancy/tenant/{tenant_id}/token endpoint. Some applications might require a token with an expiration date of a desired length set.

PatStLouis commented 7 months ago

I was thinking an optional value which would overwrite the default value when calculating the exp if defined.

It should be picked up when verifying the token expiration.

I will have a look at a PR.