10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
OIDCConfiguration Class Reference

#include <OIDCConfiguration.h>

Detailed Description

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.

Constructor & Destructor Documentation

◆ OIDCConfiguration()

tenduke::oidc::OIDCConfiguration::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 )
inline

Constructs new instance.

Parameters
issuerexpected issuer (from the OIDC provider)
signatureValidatorvalidator 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.
hashAlgorithmhash algorithm to verify ID-token signature
userinfoEndpointuserinfo endpoint URL
allowedClockSkewSallowed clock skew in seconds between this client and the OIDC provider when validating ID-token time claims ("exp", "nbf", "iat")

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