|
10Duke Enterprise C++ SDK
|
#include <OIDCConfiguration.h>
OIDC-configuration.
Public Member Functions | |
| OIDCConfiguration (std::string issuer, std::shared_ptr< tenduke::jwt::JWTSignatureValidator > signatureValidator, ::tenduke::crypto::HashAlgorithm hashAlgorithm, std::string userinfoEndpoint, std::uint32_t allowedClockSkewS=DEFAULT_ALLOWED_CLOCK_SKEW_S) | |
| Constructs new instance. | |
Public Attributes | |
| const std::string | issuer |
| Expected issuer (from the OIDC provider). | |
| const std::shared_ptr< tenduke::jwt::JWTSignatureValidator > | signatureValidator |
| Validator for the ID-token signatures. | |
| const ::tenduke::crypto::HashAlgorithm | hashAlgorithm |
| Message digest algorithm to verify ID-token signature. | |
| const std::string | userinfoEndpoint |
| Userinfo endpoint URL. | |
| const std::uint32_t | allowedClockSkewS |
| Allowed clock skew in seconds between this client and the OIDC provider when validating ID-token time claims: The ID-token is accepted if "exp" is at most this much in the past, and "nbf" and "iat" are at most this much in the future. | |
Static Public Attributes | |
| static const std::uint32_t | DEFAULT_ALLOWED_CLOCK_SKEW_S = 60 |
| Default allowed clock skew in seconds, see allowedClockSkewS. | |
|
inline |
Constructs new instance.
| issuer | expected issuer (from the OIDC provider) |
| signatureValidator | validator for the ID-token signatures. Must not be null for the configuration to be used for creating OIDC clients. Use e.g. tenduke::jwk::DynamicJWKSSignatureValidator (as tenduke::oidc::AutoDiscovery::toOIDCConfiguration() does) or, with a single known key, tenduke::jwt::FixedKeyJWTSignatureValidator. |
| hashAlgorithm | hash algorithm to verify ID-token signature |
| userinfoEndpoint | userinfo endpoint URL |
| allowedClockSkewS | allowed clock skew in seconds between this client and the OIDC provider when validating ID-token time claims ("exp", "nbf", "iat") |