This page is for Authlete 2.x. For current (3.0) documentation, see this page.
Overview
This document explains access/refresh token duration per scope.This feature is available since Authlete 2.0.
Introduction
In Authlete 1.1, access (refresh) token duration can only be set for each service. Since Authlete 2.0, it can be set for each scope. This allows more granular token duration settings such as “making token duration shorten when the write scope is requested, since tokens issued with the write scope are considered to have a higher level permission than others”.How to determine token duration
See How Authlete determines token duration.Configuration
To use this feature, you need to set scope attributes on service owner console. For more details, see Scope attributes.
Example
Assume there are a service and two scopes configured within it. Values of access token duration are set to the service and the scopes as follows.| Entity | Access token duration (seconds) |
|---|---|
| Service | 86,400 |
| read scope | 3,600 |
| write scope | 600 |