10Duke Enterprise C++ SDK
Toggle main menu visibility
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
11
namespace
tenduke
{
namespace
oidc
{
12
13
17
class
OIDCConfiguration
18
{
19
public
:
21
static
const
std::uint32_t
DEFAULT_ALLOWED_CLOCK_SKEW_S
= 60;
22
35
OIDCConfiguration
(
36
std::string
issuer
,
37
std::shared_ptr<tenduke::jwt::JWTSignatureValidator>
signatureValidator
,
38
::tenduke::crypto::HashAlgorithm
hashAlgorithm
,
39
std::string
userinfoEndpoint
,
40
std::uint32_t
allowedClockSkewS
=
DEFAULT_ALLOWED_CLOCK_SKEW_S
41
) :
issuer
(std::move(
issuer
)),
signatureValidator
(std::move(
signatureValidator
)),
hashAlgorithm
(
hashAlgorithm
),
42
userinfoEndpoint
(std::move(
userinfoEndpoint
)),
allowedClockSkewS
(
allowedClockSkewS
)
43
{}
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::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)
Constructs new instance.
Definition
OIDCConfiguration.h:35
tenduke::oidc::OIDCConfiguration::signatureValidator
const std::shared_ptr< tenduke::jwt::JWTSignatureValidator > signatureValidator
Validator for the ID-token signatures.
Definition
OIDCConfiguration.h:49
tenduke::oidc::OIDCConfiguration::issuer
const std::string issuer
Expected issuer (from the OIDC provider).
Definition
OIDCConfiguration.h:46
tenduke::oidc::OIDCConfiguration::hashAlgorithm
const ::tenduke::crypto::HashAlgorithm hashAlgorithm
Message digest algorithm to verify ID-token signature.
Definition
OIDCConfiguration.h:51
tenduke::oidc::OIDCConfiguration::DEFAULT_ALLOWED_CLOCK_SKEW_S
static const std::uint32_t DEFAULT_ALLOWED_CLOCK_SKEW_S
Default allowed clock skew in seconds, see allowedClockSkewS.
Definition
OIDCConfiguration.h:21
tenduke::oidc::OIDCConfiguration::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)
Constructs new instance.
Definition
OIDCConfiguration.h:35
tenduke::oidc::OIDCConfiguration::allowedClockSkewS
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
tenduke::oidc::OIDCConfiguration::userinfoEndpoint
const std::string userinfoEndpoint
Userinfo endpoint URL.
Definition
OIDCConfiguration.h:54
tenduke::crypto::HashAlgorithm
HashAlgorithm
Currently supported hash algorithms.
Definition
HashAlgorithm.h:13
tenduke::oidc
Implementation of OpenID Connect protocol.
Definition
AutoDiscovery.h:17
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
oidc
core
src
oidc
OIDCConfiguration.h
Generated by
1.17.0