10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
OAuthTokenResponse.h
1#ifndef TENDUKE_OAUTH_OAUTHTOKENRESPONSE_H
2#define TENDUKE_OAUTH_OAUTHTOKENRESPONSE_H
3
4#include "./OAuthState.h"
5#include "json/JSONObject.h"
6
7#include <cstdint>
8#include <string>
9
10namespace tenduke { namespace oauth {
11
12
17{
18public:
27 std::string accessToken,
28 std::string refreshToken,
29 const std::int64_t expiresAt,
30 std::shared_ptr<tenduke::json::JSONObject> additionalProperties
32 {}
33
35 static const std::int64_t NO_EXPIRES_IN = -1;
36
48
50 const std::string accessToken;
52 const std::string refreshToken;
60 const std::int64_t expiresAt;
62 std::shared_ptr<tenduke::json::JSONObject> additionalProperties;
63};
64
65
66}}
67
68#endif // TENDUKE_OAUTH_OAUTHTOKENRESPONSE_H
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:26
const std::string accessToken
OAuth access token.
Definition OAuthTokenResponse.h:50
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:26
const std::int64_t expiresAt
Time (epoch seconds) when the access token expires.
Definition OAuthTokenResponse.h:60
std::int64_t getExpiresAtOrDoesNotExpire() const
Returns the expiration time for the access token state.
Definition OAuthTokenResponse.h:44
std::shared_ptr< tenduke::json::JSONObject > additionalProperties
Additional response properties.
Definition OAuthTokenResponse.h:62
const std::string refreshToken
Refresh token.
Definition OAuthTokenResponse.h:52
static const std::int64_t NO_EXPIRES_IN
Magic value to indicate that the response did not contain expires_in.
Definition OAuthTokenResponse.h:35
OAuth services.
Definition AccessTokenRequestAuthenticator.h:8
const std::int64_t TOKEN_DOES_NOT_EXPIRE
Magic value to denote that the access token does not expire.
Definition OAuthState.h:12
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4