10Duke Scale C++ Client
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
18{
19public:
30 std::string deviceCode,
31 std::string userCode,
32 std::string verificationUri,
33 std::string verificationUriComplete,
34 const int64_t expiresAtEpochS,
35 const int64_t intervalS
36 ) : deviceCode(std::move(deviceCode))
37 , userCode(std::move(userCode))
42 {}
43
45 const std::string deviceCode;
46
48 const std::string userCode;
49
51 const std::string verificationUri;
52
54 const std::string verificationUriComplete;
55
57 const std::int64_t expiresAtEpochS;
58
60 const std::int64_t intervalS;
61};
62
63}}}
64
65#endif //TENDUKE_OAUTH_DEVICE_DEVICEAUTHORIZATIONRESPONSE_H
Device Authorization Response.
Definition DeviceAuthorizationResponse.h:18
const std::int64_t intervalS
Polling interval in seconds.
Definition DeviceAuthorizationResponse.h:60
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:29
const std::string deviceCode
The device code.
Definition DeviceAuthorizationResponse.h:45
const std::string verificationUri
The verification URI.
Definition DeviceAuthorizationResponse.h:51
const std::string verificationUriComplete
The complete verification URI.
Definition DeviceAuthorizationResponse.h:54
const std::int64_t expiresAtEpochS
Expires-at (epoch seconds).
Definition DeviceAuthorizationResponse.h:57
const std::string userCode
The user code.
Definition DeviceAuthorizationResponse.h:48
OAuth services.
Definition AccessTokenRequestAuthenticator.h:8
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7