googleauth - Class Google::Auth::IAMCredentials (v1.12.2)

Reference documentation and code samples for the googleauth class Google::Auth::IAMCredentials.

Authenticates requests using IAM credentials.

Inherits

  • Object

Methods

#apply

  def 
  
 apply 
 ( 
 a_hash 
 ) 
 

Returns a clone of a_hash updated with the authoriation header

#apply!

  def 
  
 apply! 
 ( 
 a_hash 
 ) 
 

Adds the credential fields to the hash.

#initialize

  def 
  
 initialize 
 ( 
 selector 
 , 
  
 token 
 ) 
  
 - 
>  
 IAMCredentials 
 

Initializes an IAMCredentials.

Parameters
  • selector— the IAM selector.
  • token— the IAM token.
Returns
Raises
  • (TypeError)

#updater_proc

  def 
  
 updater_proc 
 () 
 

Returns a reference to the #apply method, suitable for passing as a closure

Constants

SELECTOR_KEY

value: "x-goog-iam-authority-selector".freeze

TOKEN_KEY

value: "x-goog-iam-authorization-token".freeze

Create a Mobile Website
View Site in Mobile | Classic
Share by: