ExternalAccountCredentials
class ExternalAccountCredentials implements FetchAuthTokenInterface, UpdateMetadataInterface (View source)
Traits
Provides shared methods for updating request metadata (request headers).
Constants
| private EXTERNAL_ACCOUNT_TYPE | 
                     
  | 
            
Methods
Updates metadata with the authorization token.
No description
No description
Obtains a key that can used to cache the results of #fetchAuthToken.
Returns an associative array with the token and expiration time.
Details
        
                            callable
    getUpdateMetadataFunc()
        deprecated
    
    deprecated
export a callback function which updates runtime metadata.
        
                            array
    updateMetadata(array $metadata, string $authUri = null, callable $httpHandler = null)
        
    
    Updates metadata with the authorization token.
        
        
    __construct(string|string[] $scope, array $jsonKey)
        
    
    No description
        
                            array
    fetchAuthToken(callable $httpHandler = null)
        
    
    No description
        
                            string
    getCacheKey()
        
    
    Obtains a key that can used to cache the results of #fetchAuthToken.
If the value is empty, the auth token is not cached.
        
                            null|array
    getLastReceivedToken()
        
    
    Returns an associative array with the token and expiration time.