|
AXIAM C++ SDK 1.0.0-alpha8
Authentication, authorization, JWKS & route guards (REST + mTLS)
|
Tuning for TokenAuthenticator. The defaults are the safe ones. More...
#include <authenticator.hpp>
Public Attributes | |
| std::chrono::seconds | clock_skew {kDefaultClockSkew} |
Tolerance applied to exp and nbf for small clock differences between this resource server and the AXIAM issuer. | |
| std::optional< std::string > | expected_issuer |
When set, the iss claim must be present and equal to this value. | |
| std::optional< std::string > | expected_audience |
When set, the aud claim must be present and must contain this value (aud may be a string or an array of strings). | |
| NowFn | now |
| Time source. Empty => the system clock. | |
Tuning for TokenAuthenticator. The defaults are the safe ones.
| std::chrono::seconds axiam::AuthenticatorOptions::clock_skew {kDefaultClockSkew} |
Tolerance applied to exp and nbf for small clock differences between this resource server and the AXIAM issuer.
Deliberately small: it widens the window in which an expired access token is still accepted. Must be in [0, kMaxClockSkew]; anything else throws from the constructor.
| std::optional<std::string> axiam::AuthenticatorOptions::expected_issuer |
When set, the iss claim must be present and equal to this value.
| std::optional<std::string> axiam::AuthenticatorOptions::expected_audience |
When set, the aud claim must be present and must contain this value (aud may be a string or an array of strings).
| NowFn axiam::AuthenticatorOptions::now |
Time source. Empty => the system clock.