10Duke Scale C++ Client
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
8namespace tenduke { namespace oidc { namespace device {
9
15{
16public:
24 std::string scope,
25 const std::shared_ptr<const tenduke::oidc::device::OIDCDeviceFlow> &oidc,
27 );
28
29 // `tenduke::oidc::OIDCLogin` interface
30public:
31 std::unique_ptr<tenduke::oidc::OIDCLoginRequest> login() const override;
32
33private:
34 const std::string scope;
35
36 const std::shared_ptr<const tenduke::oidc::device::OIDCDeviceFlow> oidc;
38};
39
40}}}
41
42#endif //TENDUKE_OIDC_DEVICE_OIDCDEVICEFLOWLOGIN_H
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
Login service using OIDC with OAuth Device Authorization Grant.
Definition OIDCDeviceFlowLogin.h:15
std::unique_ptr< tenduke::oidc::OIDCLoginRequest > login() const override
Starts the login process by creating a login request.
Definition OIDCDeviceFlowLogin.cpp:13
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7