10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
createTendukeClientForDevice.h
1#ifndef TENDUKE_EE_CREATETENDUKECLIENTFORDEVICE_H
2#define TENDUKE_EE_CREATETENDUKECLIENTFORDEVICE_H
3
4#include "ServiceConfiguration.h"
5#include "./TendukeClient.h"
6#include "./config/ClientProperties.h"
7#include "./licensing/Lease.h"
8#include "./licensing/LicensingClient.h"
9#include "oauth/OAuthBackendConfiguration.h"
10#include "oidc/OIDCConfiguration.h"
11#include "oidc/device/DeviceAuthenticationConfig.h"
12#include "oidc/session/OIDCSession.h"
13#include "oidc/session/OIDCSessionEventListener.h"
14#include "oidc/OIDCState.h"
15
16#include <chrono>
17#include <memory>
18
19
20namespace tenduke { namespace ee {
21
22
75std::unique_ptr<::tenduke::ee::TendukeClient> createClientForDeviceUsingAutodiscovery(
76 const std::string &clientIdentifier,
77 const ::tenduke::ee::ClientProperties &clientProperties,
78 const std::string &serviceUrl,
79 const ::tenduke::oidc::device::DeviceAuthenticationConfig &authenticationConfig,
80 const std::string &initialStateAsJSON = {},
81 const ::tenduke::ServiceConfiguration &serviceConfiguration = ::tenduke::ServiceConfiguration()
82);
83
84
136std::unique_ptr<::tenduke::ee::TendukeClient> createClientForDevice(
137 const std::string &clientIdentifier,
138 const ::tenduke::ee::ClientProperties &clientProperties,
139 const std::string &serviceUrl,
140 const ::tenduke::oauth::OAuthBackendConfiguration &oauthBackendConfiguration,
141 const ::tenduke::oidc::OIDCConfiguration &oidcConfiguration,
142 const ::tenduke::oidc::device::DeviceAuthenticationConfig &authenticationConfig,
143 const std::string &initialStateAsJSON = "",
144 const ::tenduke::ServiceConfiguration &serviceConfiguration = ::tenduke::ServiceConfiguration()
145);
146
147
148}}
149
150#endif //TENDUKE_EE_CREATETENDUKECLIENTFORDEVICE_H
Configuration for supporting services.
Definition ServiceConfiguration.h:12
std::unique_ptr<::tenduke::ee::TendukeClient > createClientForDevice(const std::string &clientIdentifier, const ::tenduke::ee::ClientProperties &clientProperties, const std::string &serviceUrl, const ::tenduke::oauth::OAuthBackendConfiguration &oauthBackendConfiguration, const ::tenduke::oidc::OIDCConfiguration &oidcConfiguration, const ::tenduke::oidc::device::DeviceAuthenticationConfig &authenticationConfig, const std::string &initialStateAsJSON="", const ::tenduke::ServiceConfiguration &serviceConfiguration=::tenduke::ServiceConfiguration())
Creates client, which authenticates user with OAuth Device Flow.
std::unique_ptr<::tenduke::ee::TendukeClient > createClientForDeviceUsingAutodiscovery(const std::string &clientIdentifier, const ::tenduke::ee::ClientProperties &clientProperties, const std::string &serviceUrl, const ::tenduke::oidc::device::DeviceAuthenticationConfig &authenticationConfig, const std::string &initialStateAsJSON={}, const ::tenduke::ServiceConfiguration &serviceConfiguration=::tenduke::ServiceConfiguration())
Creates client for 10Duke Enterprise, which authenticates user with OAuth Device Flow.
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4