ORE Studio 0.0.4
Loading...
Searching...
No Matches
Static Public Member Functions | Public Attributes | List of all members
token_settings Struct Reference

Typed representation of the JWT token lifetime settings. More...

#include <token_settings.hpp>

Collaboration diagram for token_settings:
Collaboration graph

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.
 

Detailed Description

Typed representation of the JWT token lifetime settings.

Loaded from the system settings service at startup and reloaded whenever any iam.token.* setting changes.

Member Function Documentation

◆ load()

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.

Member Data Documentation

◆ access_lifetime_s

int access_lifetime_s = 1800

Lifetime in seconds of every issued JWT access token.

Default: 1800 (30 minutes).

◆ party_selection_lifetime_s

int party_selection_lifetime_s = 300

Lifetime in seconds of the party-selection step token.

Default: 300 (5 minutes).

◆ max_session_s

int max_session_s = 28800

Hard ceiling in seconds for a session regardless of refresh.

Default: 28800 (8 hours).

◆ refresh_threshold_pct

int refresh_threshold_pct = 80

Percentage of token lifetime at which to proactively refresh.

Default: 80 (80%).