20#ifndef ORES_IAM_SERVICE_AUTH_SESSION_SERVICE_HPP
21#define ORES_IAM_SERVICE_AUTH_SESSION_SERVICE_HPP
27#include <unordered_map>
29#include "ores.iam.api/domain/session.hpp"
30#include "ores.logging/make_logger.hpp"
42 void remove_session(
const std::string& token);
43 std::optional<ores::iam::domain::session>
44 find_session(
const std::string& token)
const;
45 std::vector<ores::iam::domain::session> get_all_sessions()
const;
48 inline static std::string_view logger_name =
49 "ores.iam.service.auth_session_service";
53 static auto instance = make_logger(logger_name);
57 mutable std::mutex mutex_;
58 std::unordered_map<std::string, ores::iam::domain::session> sessions_;
Service layer for the IAM module.
Definition auth_session_service.hpp:32
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Represents a user session in the system.
Definition session.hpp:80
In-memory JWT session tracker.
Definition auth_session_service.hpp:39