20#ifndef ORES_IAM_CORE_DOMAIN_TOKEN_SETTINGS_HPP
21#define ORES_IAM_CORE_DOMAIN_TOKEN_SETTINGS_HPP
23#include "ores.variability.core/service/system_settings_service.hpp"
Domain types for identity and access management.
Definition account.hpp:29
Typed representation of the JWT token lifetime settings.
Definition token_settings.hpp:33
static token_settings load(variability::service::system_settings_service &svc)
Loads token settings from the system settings service.
Definition token_settings.cpp:24
int party_selection_lifetime_s
Lifetime in seconds of the party-selection step token.
Definition token_settings.hpp:46
int access_lifetime_s
Lifetime in seconds of every issued JWT access token.
Definition token_settings.hpp:39
int max_session_s
Hard ceiling in seconds for a session regardless of refresh.
Definition token_settings.hpp:53
int refresh_threshold_pct
Percentage of token lifetime at which to proactively refresh.
Definition token_settings.hpp:60
Service for managing typed system settings.
Definition system_settings_service.hpp:41