10Duke Scale C++ Client
All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
OAuthTokenResponse.h
1#ifndef TENDUKE_OAUTH_OAUTHTOKENRESPONSE_H
2#define TENDUKE_OAUTH_OAUTHTOKENRESPONSE_H
3
4#include "json/JSONObject.h"
5
6#include <cstdint>
7#include <string>
8
9namespace tenduke { namespace oauth {
10
11
16{
17public:
26 std::string accessToken,
27 std::string refreshToken,
28 const std::int64_t expiresAt,
29 std::shared_ptr<tenduke::json::JSONObject> additionalProperties
31 {}
32
34 static const std::int64_t NO_EXPIRES_IN = -1;
35
37 const std::string accessToken;
39 const std::string refreshToken;
47 const std::int64_t expiresAt;
49 std::shared_ptr<tenduke::json::JSONObject> additionalProperties;
50};
51
52
53}}
54
55#endif // TENDUKE_OAUTH_OAUTHTOKENRESPONSE_H
Encapsulates results from tenduke::oauth::OAuthTokenRequest.
Definition OAuthTokenResponse.h:16
const std::string accessToken
OAuth access token.
Definition OAuthTokenResponse.h:37
OAuthTokenResponse(std::string accessToken, std::string refreshToken, const std::int64_t expiresAt, std::shared_ptr< tenduke::json::JSONObject > additionalProperties)
Constructs new instance.
Definition OAuthTokenResponse.h:25
const std::int64_t expiresAt
Time (epoch seconds) when the access token expires.
Definition OAuthTokenResponse.h:47
std::shared_ptr< tenduke::json::JSONObject > additionalProperties
Additional response properties.
Definition OAuthTokenResponse.h:49
const std::string refreshToken
Refresh token.
Definition OAuthTokenResponse.h:39
static const std::int64_t NO_EXPIRES_IN
Magic value to indicate that the response did not contain expires_in.
Definition OAuthTokenResponse.h:34
OAuth services.
Definition AccessTokenRequestAuthenticator.h:8
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7