|
AXIAM C++ SDK 1.0.0-alpha8
Authentication, authorization, JWKS & route guards (REST + mTLS)
|
The three decision reason codes the server currently emits (§11 rule 9). More...
#include <types.hpp>
Static Public Attributes | |
| static constexpr const char * | kAllowed = "allowed" |
| An allow grant matched and no deny did. | |
| static constexpr const char * | kNoGrant = "no_grant" |
| Nothing matched — default deny. Tells the user to ask an admin for access. | |
| static constexpr const char * | kDeniedByRule = "denied_by_rule" |
| An explicit deny rule matched and overrode any allow. An admin already decided. | |
The three decision reason codes the server currently emits (§11 rule 9).
Deliberately string constants and not an enum class: §11 rule 9 requires an unrecognised code be surfaced verbatim, so a server that adds a fourth code must not become a decode failure in every deployed client. Compare AccessDecision::reason_code against these and let anything else fall through to a default branch.
(A struct rather than a namespace so that ReasonCode::kAllowed still resolves in a scope that happens to hold a local named reason_code.)
|
staticconstexpr |
An allow grant matched and no deny did.
|
staticconstexpr |
Nothing matched — default deny. Tells the user to ask an admin for access.
|
staticconstexpr |
An explicit deny rule matched and overrode any allow. An admin already decided.