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

Authorization failure: authenticated but not permitted. More...

#include <errors.hpp>

Inheritance diagram for axiam::AuthzError:
axiam::AxiamError

Public Member Functions

 AuthzError (const std::string &message)
 
 AuthzError (const std::string &message, std::optional< std::string > action, std::optional< std::string > resource_id)
 
const std::optional< std::string > & action () const noexcept
 
const std::optional< std::string > & resource_id () const noexcept
 
- Public Member Functions inherited from axiam::AxiamError
 AxiamError (const std::string &message)
 

Detailed Description

Authorization failure: authenticated but not permitted.

Maps HTTP 403 / 409. Carries the denied action / resource id when the server provides them.

Constructor & Destructor Documentation

◆ AuthzError() [1/2]

axiam::AuthzError::AuthzError ( const std::string &  message)
inlineexplicit

◆ AuthzError() [2/2]

axiam::AuthzError::AuthzError ( const std::string &  message,
std::optional< std::string >  action,
std::optional< std::string >  resource_id 
)
inline

Member Function Documentation

◆ action()

const std::optional< std::string > & axiam::AuthzError::action ( ) const
inlinenoexcept

◆ resource_id()

const std::optional< std::string > & axiam::AuthzError::resource_id ( ) const
inlinenoexcept

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