10Duke Enterprise C++ SDK
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
11namespace tenduke { namespace oidc { namespace device {
12
18{
19public:
28 std::string scope,
29 const std::shared_ptr<const tenduke::oidc::device::OIDCDeviceFlow> &oidc,
31 const std::map<std::string, std::string> &additionalParameters = {}
32 );
33
34 // `tenduke::oidc::OIDCLogin` interface
35public:
36 std::unique_ptr<tenduke::oidc::OIDCLoginRequest> login() const override;
37
38private:
39 const std::string scope;
40
41 const std::shared_ptr<const tenduke::oidc::device::OIDCDeviceFlow> oidc;
43 const std::map<std::string, std::string> additionalParameters;
44};
45
46}}}
47
48#endif //TENDUKE_OIDC_DEVICE_OIDCDEVICEFLOWLOGIN_H
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
A callback to denote that Device Authorization Response has been received.
Definition OAuthDeviceAuthorizationResponseReceived.h:21
High-level service to perform OIDC-login.
Definition OIDCLogin.h:13
std::unique_ptr< tenduke::oidc::OIDCLoginRequest > login() const override
Starts the login process by creating a login request.
Definition OIDCDeviceFlowLogin.cpp:13
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
OIDC-wrapping of OAuth Device Flow.
Definition DefaultOIDCDeviceAuthenticationRequest.h:11
Implementation of OpenID Connect protocol.
Definition AutoDiscovery.h:15
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4