payprop / net-oauth2-authorizationserver

Module to implement core functions of an OAuth2 authorization server
7 stars 10 forks source link

Allow access_token_ttl to be passed as callback #29

Closed vskrupskis closed 3 years ago

vskrupskis commented 3 years ago

In some scenarios we might have some specific business logic where TTL depends on the client or other similar conditions.

To support client specific TTL allow access_token_ttl to be passed as callback so that we can call our own conditions on what the lifespan of the token should be.

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.05%) to 97.237% when pulling 7024ff6ef913cbc0567ff3594681bf2232958383 on valters/access_token_ttl_as_callback into f90a4cce0ef1c371097a59f2b8ab67227e7904ce on master.

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.05%) to 97.237% when pulling 60a74a17b7955ce44609be25beceee2d47909da8 on valters/access_token_ttl_as_callback into f90a4cce0ef1c371097a59f2b8ab67227e7904ce on master.

leejo commented 3 years ago

Looks good! Merging, will be on the way to CPAN shortly.