Open 3D Engine AWSClientAuth Gem API Reference  23.05.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AWSClientAuth::AuthenticationTokens Class Reference

Used to share authentication tokens to caller and to AWSCognitoAuthorizationController. More...

#include <AuthenticationTokens.h>

Public Member Functions

 AZ_TYPE_INFO (AuthenticationTokens,"{F965D1B2-9DE3-4900-B44B-E58D9F083ACB}")
 
 AuthenticationTokens (const AuthenticationTokens &other)
 
 AuthenticationTokens (const AZStd::string &accessToken, const AZStd::string &refreshToken, const AZStd::string &openIdToken, const ProviderNameEnum &providerName, int tokensExpireTimeSeconds)
 
bool AreTokensValid () const
 
AZStd::string GetOpenIdToken () const
 
AZStd::string GetAccessToken () const
 
AZStd::string GetRefreshToken () const
 
ProviderNameEnum GetProviderName () const
 
int GetTokensExpireTimeSeconds () const
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Detailed Description

Used to share authentication tokens to caller and to AWSCognitoAuthorizationController.

Member Function Documentation

bool AWSClientAuth::AuthenticationTokens::AreTokensValid ( ) const

Compares current time stamp to expired time stamp.

Returns
True if current TS less than expiry TS.
AZStd::string AWSClientAuth::AuthenticationTokens::GetAccessToken ( ) const
Returns
Access token from authentication.
AZStd::string AWSClientAuth::AuthenticationTokens::GetOpenIdToken ( ) const
Returns
Open id token from authentication.
ProviderNameEnum AWSClientAuth::AuthenticationTokens::GetProviderName ( ) const
Returns
Provide name for the tokens.
AZStd::string AWSClientAuth::AuthenticationTokens::GetRefreshToken ( ) const
Returns
Refresh token from authentication.
int AWSClientAuth::AuthenticationTokens::GetTokensExpireTimeSeconds ( ) const
Returns
Expiration time in seconds.

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