10Duke Enterprise C++ SDK
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
8namespace tenduke { namespace oidc { namespace device {
9
15{
16public:
26 const std::shared_ptr<const tenduke::oidc::OIDCConfiguration> &oidcConfiguration,
27 const std::shared_ptr<const tenduke::oauth::device::OAuthDeviceFlow> &oauthClient,
28 const std::shared_ptr<const tenduke::jwt::JWTParser> &jwtParser,
29 const std::shared_ptr<const tenduke::http::HTTPClient> &httpClient,
30 const std::shared_ptr<tenduke::time::Clock> &clock
31 );
32
33 // 'tenduke:oidc::device::OIDCDeviceFlow` interface
34public:
35 std::unique_ptr<tenduke::oidc::device::OIDCDeviceAuthenticationRequest> authenticate(const std::string &scopes) const override;
36 std::unique_ptr<tenduke::oidc::device::OIDCDeviceAuthenticationRequest> authenticate(
37 const std::string &scopes,
38 const std::map<std::string, std::string> &additionalProperties
39 ) const override;
40
41private:
42 const std::shared_ptr<const tenduke::oauth::device::OAuthDeviceFlow> oauth;
43};
44
45}}}
46
47#endif //TENDUKE_OIDC_DEVICE_DEFAULTOIDCDEVICEFLOW_H
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, const std::shared_ptr< tenduke::time::Clock > &clock)
Constructs new instance.
Definition DefaultOIDCDeviceFlow.cpp:30
Base-class for OIDC-clients.
Definition BaseOIDCClient.h:23
const std::shared_ptr< const tenduke::oidc::OIDCConfiguration > oidcConfiguration
OIDC-configuration.
Definition BaseOIDCClient.h:74
const std::shared_ptr< tenduke::time::Clock > clock
Clock for validating ID-token time claims.
Definition BaseOIDCClient.h:80
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
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, const std::shared_ptr< tenduke::time::Clock > &clock)
Constructs new instance.
Definition DefaultOIDCDeviceFlow.cpp:30
OpenID Connect -client for OAuth Device Authorization Grant.
Definition OIDCDeviceFlow.h:20
OIDC-wrapping of OAuth Device Flow.
Definition DefaultOIDCDeviceAuthenticationRequest.h:11
Implementation of OpenID Connect protocol.
Definition AutoDiscovery.h:17
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4