AWS SDK for C++

AWS SDK for C++ Version 1.11.792

Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Aws::Auth::SSOBearerTokenProvider Class Reference

#include <SSOBearerTokenProvider.h>

Inheritance diagram for Aws::Auth::SSOBearerTokenProvider:
[legend]

Classes

 

Public Member Functions

 
 SSOBearerTokenProvider (const Aws::String &awsProfile)
 
 SSOBearerTokenProvider (const Aws::String &awsProfile, std::shared_ptr< const Aws::Client::ClientConfiguration > config)
 
 

Public Member Functions inherited from Aws::Auth::AWSBearerTokenProviderBase

virtual ~AWSBearerTokenProviderBase ()=default
 

Protected Member Functions

void Reload ()
 
 
 
bool WriteAccessTokenFile (const CachedSsoToken &token) const
 

Protected Attributes

 
 
std::shared_ptr< const Aws::Client::ClientConfigurationm_config
 
 
 
 

Static Protected Attributes

static const size_t REFRESH_ATTEMPT_INTERVAL_S
 
 

Detailed Description

To support usage of SSO bearerToken. The SSO token provider assumes that an SSO access token has already been resolved and cached to disk.

Definition at line 22 of file SSOBearerTokenProvider.h.

Constructor & Destructor Documentation

◆ SSOBearerTokenProvider() [1/3]

Aws::Auth::SSOBearerTokenProvider::SSOBearerTokenProvider ( )

◆ SSOBearerTokenProvider() [2/3]

Aws::Auth::SSOBearerTokenProvider::SSOBearerTokenProvider ( const Aws::String awsProfile)
explicit

◆ SSOBearerTokenProvider() [3/3]

Aws::Auth::SSOBearerTokenProvider::SSOBearerTokenProvider ( const Aws::String awsProfile,
std::shared_ptr< const Aws::Client::ClientConfiguration config 
)
explicit

Member Function Documentation

◆ GetAWSBearerToken()

AWSBearerToken Aws::Auth::SSOBearerTokenProvider::GetAWSBearerToken ( )
overridevirtual

Retrieves the bearerToken if found, otherwise returns empty credential set.

Implements Aws::Auth::AWSBearerTokenProviderBase.

◆ LoadAccessTokenFile()

CachedSsoToken Aws::Auth::SSOBearerTokenProvider::LoadAccessTokenFile ( ) const
protected

◆ RefreshFromSso()

void Aws::Auth::SSOBearerTokenProvider::RefreshFromSso ( )
protected

◆ Reload()

void Aws::Auth::SSOBearerTokenProvider::Reload ( )
protected

◆ WriteAccessTokenFile()

bool Aws::Auth::SSOBearerTokenProvider::WriteAccessTokenFile ( const CachedSsoToken token) const
protected

Member Data Documentation

◆ m_client

Aws::UniquePtr<Aws::Internal::SSOCredentialsClient> Aws::Auth::SSOBearerTokenProvider::m_client
protected

Definition at line 50 of file SSOBearerTokenProvider.h.

◆ m_config

std::shared_ptr<const Aws::Client::ClientConfiguration> Aws::Auth::SSOBearerTokenProvider::m_config
protected

Definition at line 52 of file SSOBearerTokenProvider.h.

◆ m_lastUpdateAttempt

Aws::Utils::DateTime Aws::Auth::SSOBearerTokenProvider::m_lastUpdateAttempt
mutableprotected

Definition at line 55 of file SSOBearerTokenProvider.h.

◆ m_profileToUse

Aws::String Aws::Auth::SSOBearerTokenProvider::m_profileToUse
protected

Definition at line 51 of file SSOBearerTokenProvider.h.

◆ m_reloadLock

Aws::Utils::Threading::ReaderWriterLock Aws::Auth::SSOBearerTokenProvider::m_reloadLock
mutableprotected

Definition at line 57 of file SSOBearerTokenProvider.h.

◆ m_token

Aws::Auth::AWSBearerToken Aws::Auth::SSOBearerTokenProvider::m_token
mutableprotected

Definition at line 54 of file SSOBearerTokenProvider.h.

◆ REFRESH_ATTEMPT_INTERVAL_S

const size_t Aws::Auth::SSOBearerTokenProvider::REFRESH_ATTEMPT_INTERVAL_S
staticprotected

Definition at line 47 of file SSOBearerTokenProvider.h.

◆ REFRESH_WINDOW_BEFORE_EXPIRATION_S

const size_t Aws::Auth::SSOBearerTokenProvider::REFRESH_WINDOW_BEFORE_EXPIRATION_S
staticprotected

Definition at line 48 of file SSOBearerTokenProvider.h.


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