31 std::optional<UserInfo>
user;
62 std::optional<std::string>
scope;
78 static constexpr const char*
kAllowed =
"allowed";
80 static constexpr const char*
kNoGrant =
"no_grant";
Wraps secret material (access tokens, mTLS private keys).
Definition sensitive.hpp:26
Definition authenticator.hpp:40
A single access-check request (CheckAccessBody).
Definition types.hpp:59
std::optional< std::string > subject_id
Definition types.hpp:63
std::optional< std::string > scope
Definition types.hpp:62
std::string action
Definition types.hpp:60
std::string resource_id
Definition types.hpp:61
Result of an access check (CheckAccessResponse).
Definition types.hpp:86
std::optional< std::string > reason_code
§11 rule 9 machine-readable decision reason.
Definition types.hpp:95
std::optional< std::string > reason
Human-readable prose, when the server sends any.
Definition types.hpp:89
bool allowed
Definition types.hpp:87
mTLS device authentication result (POST /api/v1/auth/device).
Definition types.hpp:51
Sensitive< std::string > access_token
Definition types.hpp:52
std::int64_t expires_in
Definition types.hpp:54
std::string token_type
Definition types.hpp:53
Result of login / verify_mfa.
Definition types.hpp:27
std::optional< UserInfo > user
Definition types.hpp:31
bool mfa_required
Definition types.hpp:28
std::vector< std::string > available_methods
Definition types.hpp:40
std::int64_t expires_in
Definition types.hpp:33
Sensitive< std::string > challenge_token
Short-lived MFA challenge token.
Definition types.hpp:39
std::string session_id
Definition types.hpp:32
The three decision reason codes the server currently emits (§11 rule 9).
Definition types.hpp:76
static constexpr const char * kAllowed
An allow grant matched and no deny did.
Definition types.hpp:78
static constexpr const char * kDeniedByRule
An explicit deny rule matched and overrode any allow. An admin already decided.
Definition types.hpp:82
static constexpr const char * kNoGrant
Nothing matched — default deny. Tells the user to ask an admin for access.
Definition types.hpp:80
Result of a token refresh (§9).
Definition types.hpp:45
std::int64_t expires_in
Definition types.hpp:46
Subset of LoginUserInfo returned on a successful authentication.
Definition types.hpp:15
std::optional< std::string > tenant_slug
Definition types.hpp:21
std::string email
Definition types.hpp:18
std::string username
Definition types.hpp:17
std::string id
Definition types.hpp:16
std::string tenant_id
Definition types.hpp:19
std::optional< std::string > org_slug
Definition types.hpp:20