AXIAM C++ SDK 1.0.0-alpha8
Authentication, authorization, JWKS & route guards (REST + mTLS)
Loading...
Searching...
No Matches
Static Public Attributes | List of all members
axiam::ReasonCode Struct Reference

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.
 

Detailed Description

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.)

Member Data Documentation

◆ kAllowed

constexpr const char* axiam::ReasonCode::kAllowed = "allowed"
staticconstexpr

An allow grant matched and no deny did.

◆ kNoGrant

constexpr const char* axiam::ReasonCode::kNoGrant = "no_grant"
staticconstexpr

Nothing matched — default deny. Tells the user to ask an admin for access.

◆ kDeniedByRule

constexpr const char* axiam::ReasonCode::kDeniedByRule = "denied_by_rule"
staticconstexpr

An explicit deny rule matched and overrode any allow. An admin already decided.


The documentation for this struct was generated from the following file: