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
namespace
tenduke
{
namespace
oidc
{
namespace
device
{
9
14
class
OIDCDeviceFlowLogin
:
public
tenduke::oidc::OIDCLogin
15
{
16
public
:
23
OIDCDeviceFlowLogin
(
24
std::string scope,
25
const
std::shared_ptr<const tenduke::oidc::device::OIDCDeviceFlow> &oidc,
26
oauth::device::OAuthDeviceAuthorizationResponseReceived
&callback
27
);
28
29
// `tenduke::oidc::OIDCLogin` interface
30
public
:
31
std::unique_ptr<tenduke::oidc::OIDCLoginRequest>
login
()
const override
;
32
33
private
:
34
const
std::string scope;
35
36
const
std::shared_ptr<const tenduke::oidc::device::OIDCDeviceFlow> oidc;
37
tenduke::oauth::device::OAuthDeviceAuthorizationResponseReceived
&callback;
38
};
39
40
}}}
41
42
#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)
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)
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:18
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