10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
DeviceAuthorizationResponse.h
1#ifndef TENDUKE_OAUTH_DEVICE_DEVICEAUTHORIZATIONRESPONSE_H
2#define TENDUKE_OAUTH_DEVICE_DEVICEAUTHORIZATIONRESPONSE_H
3
4#include <string>
5#include <cstdint>
6#include <utility>
7
8namespace tenduke { namespace oauth { namespace device {
9
23{
24public:
35 std::string deviceCode,
36 std::string userCode,
37 std::string verificationUri,
38 std::string verificationUriComplete,
39 const int64_t expiresAtEpochS,
40 const int64_t intervalS
41 ) : deviceCode(std::move(deviceCode))
42 , userCode(std::move(userCode))
47 {}
48
50 const std::string deviceCode;
51
53 const std::string userCode;
54
56 const std::string verificationUri;
57
61 const std::string verificationUriComplete;
62
64 const std::int64_t expiresAtEpochS;
65
67 const std::int64_t intervalS;
68};
69
70}}}
71
72#endif //TENDUKE_OAUTH_DEVICE_DEVICEAUTHORIZATIONRESPONSE_H
DeviceAuthorizationResponse(std::string deviceCode, std::string userCode, std::string verificationUri, std::string verificationUriComplete, const int64_t expiresAtEpochS, const int64_t intervalS)
Constructs new instance.
Definition DeviceAuthorizationResponse.h:34
const std::int64_t intervalS
Polling interval in seconds.
Definition DeviceAuthorizationResponse.h:67
DeviceAuthorizationResponse(std::string deviceCode, std::string userCode, std::string verificationUri, std::string verificationUriComplete, const int64_t expiresAtEpochS, const int64_t intervalS)
Constructs new instance.
Definition DeviceAuthorizationResponse.h:34
const std::string deviceCode
The device code.
Definition DeviceAuthorizationResponse.h:50
const std::string verificationUri
The verification URI: an absolute https URL (http only for loopback hosts).
Definition DeviceAuthorizationResponse.h:56
const std::string verificationUriComplete
The complete verification URI, which includes the user code: an absolute https URL (http only for loo...
Definition DeviceAuthorizationResponse.h:61
const std::int64_t expiresAtEpochS
Expires-at (epoch seconds).
Definition DeviceAuthorizationResponse.h:64
const std::string userCode
The user code.
Definition DeviceAuthorizationResponse.h:53
Implementation of OAuth device flow.
Definition DefaultOAuthDeviceFlow.h:18
OAuth services.
Definition AccessTokenRequestAuthenticator.h:8
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4