10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
DefaultOIDCDeviceFlow.h
1
#ifndef TENDUKE_OIDC_DEVICE_DEFAULTOIDCDEVICEFLOW_H
2
#define TENDUKE_OIDC_DEVICE_DEFAULTOIDCDEVICEFLOW_H
3
4
#include "./OIDCDeviceFlow.h"
5
#include "../../oauth/device/OAuthDeviceFlow.h"
6
#include "oidc/impl/BaseOIDCClient.h"
7
8
namespace
tenduke
{
namespace
oidc
{
namespace
device
{
9
13
class
DefaultOIDCDeviceFlow
:
public
tenduke::oidc::BaseOIDCClient
14
,
public
virtual
tenduke::oidc::device::OIDCDeviceFlow
15
{
16
public
:
24
DefaultOIDCDeviceFlow
(
25
const
std::shared_ptr<const tenduke::oidc::OIDCConfiguration> &
oidcConfiguration
,
26
const
std::shared_ptr<const tenduke::oauth::device::OAuthDeviceFlow> &oauthClient,
27
const
std::shared_ptr<const tenduke::jwt::JWTParser> &jwtParser,
28
const
std::shared_ptr<const tenduke::http::HTTPClient> &httpClient
29
);
30
31
// 'tenduke:oidc::device::OIDCDeviceFlow` interface
32
public
:
33
std::unique_ptr<tenduke::oidc::device::OIDCDeviceAuthenticationRequest>
authenticate
(
const
std::string &scopes)
const override
;
34
std::unique_ptr<tenduke::oidc::device::OIDCDeviceAuthenticationRequest>
authenticate
(
35
const
std::string &scopes,
36
const
std::map<std::string, std::string> &additionalProperties
37
)
const override
;
38
39
private
:
40
const
std::shared_ptr<const tenduke::oauth::device::OAuthDeviceFlow>
oauth
;
41
};
42
43
}}}
44
45
#endif
//TENDUKE_OIDC_DEVICE_DEFAULTOIDCDEVICEFLOW_H
DefaultOIDCDeviceFlow::DefaultOIDCDeviceFlow
DefaultOIDCDeviceFlow(const std::shared_ptr< const tenduke::oidc::OIDCConfiguration > &oidcConfiguration, const std::shared_ptr< const tenduke::oauth::device::OAuthDeviceFlow > &oauthClient, const std::shared_ptr< const tenduke::jwt::JWTParser > &jwtParser, const std::shared_ptr< const tenduke::http::HTTPClient > &httpClient)
Constructs new instance.
Definition
DefaultOIDCDeviceFlow.cpp:28
tenduke::oidc::BaseOIDCClient
Base-class for OIDC-clients.
Definition
BaseOIDCClient.h:22
tenduke::oidc::BaseOIDCClient::oidcConfiguration
const std::shared_ptr< const tenduke::oidc::OIDCConfiguration > oidcConfiguration
OIDC-configuration.
Definition
BaseOIDCClient.h:71
tenduke::oidc::device::DefaultOIDCDeviceFlow::DefaultOIDCDeviceFlow
DefaultOIDCDeviceFlow(const std::shared_ptr< const tenduke::oidc::OIDCConfiguration > &oidcConfiguration, const std::shared_ptr< const tenduke::oauth::device::OAuthDeviceFlow > &oauthClient, const std::shared_ptr< const tenduke::jwt::JWTParser > &jwtParser, const std::shared_ptr< const tenduke::http::HTTPClient > &httpClient)
Constructs new instance.
Definition
DefaultOIDCDeviceFlow.cpp:28
tenduke::oidc::device::DefaultOIDCDeviceFlow::authenticate
std::unique_ptr< tenduke::oidc::device::OIDCDeviceAuthenticationRequest > authenticate(const std::string &scopes) const override
Creates OIDCRequest which performs the OIDC-authentication.
Definition
DefaultOIDCDeviceFlow.cpp:9
tenduke::oidc::device::OIDCDeviceFlow
OpenID Connect -client for OAuth Device Authorization Grant.
Definition
OIDCDeviceFlow.h:20
tenduke::oauth
OAuth services.
Definition
AccessTokenRequestAuthenticator.h:8
tenduke::oidc::device
OIDC-wrapping of OAuth Device Flow.
Definition
DefaultOIDCDeviceAuthenticationRequest.h:11
tenduke::oidc
Implementation of OpenID Connect protocol.
Definition
AutoDiscovery.h:18
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
oidc
device
src
oidc
device
DefaultOIDCDeviceFlow.h
Generated by
1.17.0