Class IAMAuth (8.6.0)

Package

google-auth-library

Constructors

(constructor)(selector, token)

  constructor 
 ( 
 selector 
 : 
  
 string 
 , 
  
 token 
 : 
  
 string 
 ); 
 

IAM credentials.

Parameters
Name Description
selector string

the iam authority selector

token string

the token

Properties

selector

  selector 
 : 
  
 string 
 ; 
 

token

  token 
 : 
  
 string 
 ; 
 

Methods

getRequestHeaders()

  getRequestHeaders 
 () 
 : 
  
 { 
  
 'x-goog-iam-authority-selector' 
 : 
  
 string 
 ; 
  
 'x-goog-iam-authorization-token' 
 : 
  
 string 
 ; 
  
 }; 
 

Acquire the HTTP headers required to make an authenticated request.

Returns
Type Description
{ 'x-goog-iam-authority-selector': string; 'x-goog-iam-authorization-token': string; }
Design a Mobile Site
View Site in Mobile | Classic
Share by: