|
ORE Studio 0.0.4
|
Typed representation of the JWT token lifetime settings. More...
#include <token_settings.hpp>

Static Public Member Functions | |
| static token_settings | load (variability::service::system_settings_service &svc) |
| Loads token settings from the system settings service. | |
Public Attributes | |
| int | access_lifetime_s = 1800 |
| Lifetime in seconds of every issued JWT access token. | |
| int | party_selection_lifetime_s = 300 |
| Lifetime in seconds of the party-selection step token. | |
| int | max_session_s = 28800 |
| Hard ceiling in seconds for a session regardless of refresh. | |
| int | refresh_threshold_pct = 80 |
| Percentage of token lifetime at which to proactively refresh. | |
Typed representation of the JWT token lifetime settings.
Loaded from the system settings service at startup and reloaded whenever any iam.token.* setting changes.
|
static |
Loads token settings from the system settings service.
Falls back to the struct defaults (which match the registry defaults) if any setting is absent from the database.
| int access_lifetime_s = 1800 |
Lifetime in seconds of every issued JWT access token.
Default: 1800 (30 minutes).
| int party_selection_lifetime_s = 300 |
Lifetime in seconds of the party-selection step token.
Default: 300 (5 minutes).
| int max_session_s = 28800 |
Hard ceiling in seconds for a session regardless of refresh.
Default: 28800 (8 hours).
| int refresh_threshold_pct = 80 |
Percentage of token lifetime at which to proactively refresh.
Default: 80 (80%).