|
AXIAM C++ SDK 1.0.0-alpha8
Authentication, authorization, JWKS & route guards (REST + mTLS)
|
§10 guard functor: a callable that turns a request into an AxiamUser using a caller-supplied authenticator (the §10 verification adapter). More...
#include <guard.hpp>
Public Types | |
| using | Authenticator = std::function< std::optional< AxiamUser >(const Request &)> |
Public Member Functions | |
| AxiamGuard (Authenticator auth) | |
| AxiamUser | operator() (const Request &request) const |
§10 guard functor: a callable that turns a request into an AxiamUser using a caller-supplied authenticator (the §10 verification adapter).
Throws AuthError when the request carries no valid session.
| using axiam::AxiamGuard< Request >::Authenticator = std::function<std::optional<AxiamUser>(const Request&)> |
|
inlineexplicit |
|
inline |