10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::oauth::device::DeviceAuthorizationResponse Class Reference

#include <DeviceAuthorizationResponse.h>

Detailed Description

Device Authorization Response.

See https://datatracker.ietf.org/doc/html/rfc8628#section-3.2.

NOTE: This implementation estimates "expires at epoch seconds" instead of "expires after seconds".

Public Member Functions

 DeviceAuthorizationResponse (std::string deviceCode, std::string userCode, std::string verificationUri, std::string verificationUriComplete, const int64_t expiresAtEpochS, const int64_t intervalS)
 Constructs new instance.
 

Public Attributes

const std::string deviceCode
 The device code.
 
const std::string userCode
 The user code.
 
const std::string verificationUri
 The verification URI.
 
const std::string verificationUriComplete
 The complete verification URI.
 
const std::int64_t expiresAtEpochS
 Expires-at (epoch seconds).
 
const std::int64_t intervalS
 Polling interval in seconds.
 

Constructor & Destructor Documentation

◆ DeviceAuthorizationResponse()

tenduke::oauth::device::DeviceAuthorizationResponse::DeviceAuthorizationResponse ( std::string  deviceCode,
std::string  userCode,
std::string  verificationUri,
std::string  verificationUriComplete,
const int64_t  expiresAtEpochS,
const int64_t  intervalS 
)
inline

Constructs new instance.

Parameters
deviceCode-
userCode-
verificationUri-
verificationUriComplete-
expiresAtEpochS-
intervalS-

The documentation for this class was generated from the following file: