Go to the documentation of this file. 1 #ifndef CoreAuthenticator_H
2 #define CoreAuthenticator_H
15 using std::string,
std::to_string, std::unique_ptr, std::vector, std::optional;
21 namespace fs = std::filesystem;
27 inline static const string CONSCIENCE_TECH_TEAM =
"CONSCIENCE_TECH_TEAM";
36 CscAuthentication(
const string &token,
unsigned long long timestamp,
unsigned long long refreshTimestampMillis,
const string &userUid, vector<string> userRoles);
38 bool hasAnyRoles(
const vector<string> &roles)
const;
39 bool hasAllRoles(
const vector<string> &roles)
const;
92 unsigned long long getTimeRemainingBeforeExpiration()
const;
98 std::unique_ptr<CscLogger>
logger;
NLOHMANN_BASIC_JSON_TPL_DECLARATION std::string to_string(const NLOHMANN_BASIC_JSON_TPL &j)
user-defined to_string function for JSON values
Definition: json.hpp:26470
unsigned long long authTimestampMillis
Definition: CoreAuthenticator.h:31
vector< string > userRoles
Definition: CoreAuthenticator.h:34
Definition: CoreAuthenticator.h:25
Definition: CoreAuthenticator.h:29
static std::unique_ptr< CscLogger > logger
Definition: gltfHelpers.cpp:6
Definition: conscience_log.cpp:20
string token
Definition: CoreAuthenticator.h:30
Definition: CscCommandMetadataBuilder.h:20
Definition: CoreAuthenticator.cpp:22
unsigned long long refreshTimestampMillis
Definition: CoreAuthenticator.h:32
ServerEntities * instance
Definition: ServerEntities.cpp:39
Definition: CscEntityReflexion.h:50
string userUid
Definition: CoreAuthenticator.h:33
Definition: CoreAuthenticator.h:42
std::shared_ptr< T > ptr
Definition: CscCommon.h:29