10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
OIDCConfiguration.h
1#ifndef TENDUKE_OIDC_OIDCCONFIGURATION_H
2#define TENDUKE_OIDC_OIDCCONFIGURATION_H
3
4#include "crypto/msgauthn/HashAlgorithm.h"
5#include "jwt/JWTSignatureValidator.h"
6
7#include <cstdint>
8#include <memory>
9#include <string>
10
11namespace tenduke { namespace oidc {
12
13
18{
19public:
21 static const std::uint32_t DEFAULT_ALLOWED_CLOCK_SKEW_S = 60;
22
44
46 const std::string issuer;
47
49 const std::shared_ptr<tenduke::jwt::JWTSignatureValidator> signatureValidator;
51 const ::tenduke::crypto::HashAlgorithm hashAlgorithm;
52
54 const std::string userinfoEndpoint;
55
59 const std::uint32_t allowedClockSkewS;
60};
61
62
63}}
64
65#endif // TENDUKE_OIDC_OIDCCONFIGURATION_H
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.
Definition OIDCConfiguration.h:35
const std::shared_ptr< tenduke::jwt::JWTSignatureValidator > signatureValidator
Validator for the ID-token signatures.
Definition OIDCConfiguration.h:49
const std::string issuer
Expected issuer (from the OIDC provider).
Definition OIDCConfiguration.h:46
const ::tenduke::crypto::HashAlgorithm hashAlgorithm
Message digest algorithm to verify ID-token signature.
Definition OIDCConfiguration.h:51
static const std::uint32_t DEFAULT_ALLOWED_CLOCK_SKEW_S
Default allowed clock skew in seconds, see allowedClockSkewS.
Definition OIDCConfiguration.h:21
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.
Definition OIDCConfiguration.h:35
const std::uint32_t allowedClockSkewS
Allowed clock skew in seconds between this client and the OIDC provider when validating ID-token time...
Definition OIDCConfiguration.h:59
const std::string userinfoEndpoint
Userinfo endpoint URL.
Definition OIDCConfiguration.h:54
HashAlgorithm
Currently supported hash algorithms.
Definition HashAlgorithm.h:13
Implementation of OpenID Connect protocol.
Definition AutoDiscovery.h:17
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4