10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
OIDCDeviceFlowLogin.h
1
#ifndef TENDUKE_OIDC_DEVICE_OIDCDEVICEFLOWLOGIN_H
2
#define TENDUKE_OIDC_DEVICE_OIDCDEVICEFLOWLOGIN_H
3
4
#include "./OIDCDeviceFlow.h"
5
#include "../../oauth/device/OAuthDeviceAuthorizationResponseReceived.h"
6
#include "oidc/session/OIDCLogin.h"
7
8
#include <map>
9
#include <string>
10
11
namespace
tenduke
{
namespace
oidc
{
namespace
device
{
12
17
class
OIDCDeviceFlowLogin
:
public
tenduke::oidc::OIDCLogin
18
{
19
public
:
27
OIDCDeviceFlowLogin
(
28
std::string scope,
29
const
std::shared_ptr<const tenduke::oidc::device::OIDCDeviceFlow> &oidc,
30
oauth::device::OAuthDeviceAuthorizationResponseReceived
&callback,
31
const
std::map<std::string, std::string> &additionalParameters = {}
32
);
33
34
// `tenduke::oidc::OIDCLogin` interface
35
public
:
36
std::unique_ptr<tenduke::oidc::OIDCLoginRequest>
login
()
const override
;
37
38
private
:
39
const
std::string scope;
40
41
const
std::shared_ptr<const tenduke::oidc::device::OIDCDeviceFlow> oidc;
42
tenduke::oauth::device::OAuthDeviceAuthorizationResponseReceived
&callback;
43
const
std::map<std::string, std::string> additionalParameters;
44
};
45
46
}}}
47
48
#endif
//TENDUKE_OIDC_DEVICE_OIDCDEVICEFLOWLOGIN_H
OIDCDeviceFlowLogin::OIDCDeviceFlowLogin
OIDCDeviceFlowLogin(std::string scope, const std::shared_ptr< const tenduke::oidc::device::OIDCDeviceFlow > &oidc, oauth::device::OAuthDeviceAuthorizationResponseReceived &callback, const std::map< std::string, std::string > &additionalParameters={})
Constructs new instance.
Definition
OIDCDeviceFlowLogin.cpp:22
tenduke::oauth::device::OAuthDeviceAuthorizationResponseReceived
A callback to denote that Device Authorization Response has been received.
Definition
OAuthDeviceAuthorizationResponseReceived.h:21
tenduke::oidc::OIDCLogin
High-level service to perform OIDC-login.
Definition
OIDCLogin.h:13
tenduke::oidc::device::OIDCDeviceFlowLogin::login
std::unique_ptr< tenduke::oidc::OIDCLoginRequest > login() const override
Starts the login process by creating a login request.
Definition
OIDCDeviceFlowLogin.cpp:13
tenduke::oidc::device::OIDCDeviceFlowLogin::OIDCDeviceFlowLogin
OIDCDeviceFlowLogin(std::string scope, const std::shared_ptr< const tenduke::oidc::device::OIDCDeviceFlow > &oidc, oauth::device::OAuthDeviceAuthorizationResponseReceived &callback, const std::map< std::string, std::string > &additionalParameters={})
Constructs new instance.
Definition
OIDCDeviceFlowLogin.cpp:22
tenduke::oidc::device
OIDC-wrapping of OAuth Device Flow.
Definition
DefaultOIDCDeviceAuthenticationRequest.h:11
tenduke::oidc
Implementation of OpenID Connect protocol.
Definition
AutoDiscovery.h:15
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
oidc
device
src
oidc
device
OIDCDeviceFlowLogin.h
Generated by
1.17.0