10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
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
9
namespace
tenduke
{
namespace
oauth
{
10
11
15
class
OAuthTokenResponse
16
{
17
public
:
25
OAuthTokenResponse
(
26
std::string
accessToken
,
27
std::string
refreshToken
,
28
const
std::int64_t
expiresAt
,
29
std::shared_ptr<tenduke::json::JSONObject>
additionalProperties
30
) :
accessToken
(std::move(
accessToken
)),
refreshToken
(std::move(
refreshToken
)),
expiresAt
(
expiresAt
),
additionalProperties
(std::move(
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
OAuthTokenResponse::OAuthTokenResponse
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
tenduke::oauth::OAuthTokenResponse::accessToken
const std::string accessToken
OAuth access token.
Definition
OAuthTokenResponse.h:37
tenduke::oauth::OAuthTokenResponse::OAuthTokenResponse
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
tenduke::oauth::OAuthTokenResponse::expiresAt
const std::int64_t expiresAt
Time (epoch seconds) when the access token expires.
Definition
OAuthTokenResponse.h:47
tenduke::oauth::OAuthTokenResponse::additionalProperties
std::shared_ptr< tenduke::json::JSONObject > additionalProperties
Additional response properties.
Definition
OAuthTokenResponse.h:49
tenduke::oauth::OAuthTokenResponse::refreshToken
const std::string refreshToken
Refresh token.
Definition
OAuthTokenResponse.h:39
tenduke::oauth::OAuthTokenResponse::NO_EXPIRES_IN
static const std::int64_t NO_EXPIRES_IN
Magic value to indicate that the response did not contain expires_in.
Definition
OAuthTokenResponse.h:34
tenduke::oauth
OAuth services.
Definition
AccessTokenRequestAuthenticator.h:8
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
oidc
core
src
oauth
OAuthTokenResponse.h
Generated by
1.17.0