15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_OAUTH2_CREDENTIAL_CONSTANTS_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_OAUTH2_CREDENTIAL_CONSTANTS_H
18#include "google/cloud/storage/version.h"
24GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
28
29
30
31
32
33
34
39
40
41
42
44 return std::chrono::seconds(3600);
48
49
50
51
52
53
54
55
56
57
59 return std::chrono::seconds(300);
63
64
65
66
68 static constexpr char kEndpoint[] =
"https://oauth2.googleapis.com/token";
73
74
75
76
78 static constexpr char kScope[] =
79 "https://www.googleapis.com/auth/cloud-platform";
84GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Authentication components for Google Cloud Storage.
Definition: anonymous_credentials.h:26
constexpr std::chrono::seconds GoogleOAuthAccessTokenExpirationSlack()
Returns the slack to consider when checking if an access token is expired.
Definition: credential_constants.h:58
char const * GoogleOAuthRefreshEndpoint()
The endpoint to fetch an OAuth 2.0 access token from.
Definition: credential_constants.h:67
constexpr std::chrono::seconds GoogleOAuthAccessTokenLifetime()
The max lifetime in seconds of an access token.
Definition: credential_constants.h:43
JwtSigningAlgorithms
Supported signing algorithms used in JWT auth flows.
Definition: credential_constants.h:36
char const * GoogleOAuthScopeCloudPlatform()
String representing the "cloud-platform" OAuth 2.0 scope.
Definition: credential_constants.h:77
Contains all the Google Cloud Storage C++ client APIs.
Definition: auto_finalize.h:24