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) -> IAMCredentialsInitializes an IAMCredentials.
- selector — the IAM selector.
- token — the IAM token.
- (IAMCredentials) — a new instance of IAMCredentials
- (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