Table of Contents
Authlete 3.0 calculates the effective token duration by evaluating configurations at multiple levels. The final duration is determined based on the following priority order:
This ensures that the token’s lifetime reflects the most granular and specific configuration available.
Level | Token Duration (seconds) |
---|---|
Service | 86,400 |
Scope (read ) |
3,600 |
Scope (write ) |
600 |
Client | 300 |
Scenario 1: Request without scopes → Token duration is 86,400
(service level).
Scenario 2: Request with read
scope → Token duration is 3,600
(scope level).
Scenario 3: Request with write
scope → Token duration is 600
(scope level).
Scenario 4: Request with read
and write
scopes → Token duration is 600
(shortest scope-level duration).
Scenario 5: Request by a client with configured duration → Token duration is 300
(client level overrides all).