Class Google::Auth::IAMCredentials
In: lib/googleauth/iam.rb
Parent: Object

Authenticates requests using IAM credentials.

Methods

apply   apply!   new   updater_proc  

Constants

SELECTOR_KEY = "x-goog-iam-authority-selector".freeze
TOKEN_KEY = "x-goog-iam-authorization-token".freeze

Public Class methods

Initializes an IAMCredentials.

@param selector the IAM selector. @param token the IAM token.

Public Instance methods

Returns a clone of a_hash updated with the authoriation header

Adds the credential fields to the hash.

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

[Validate]