Reference documentation and code samples for the Google Auth Library Client class IAMCredentials.
Authenticates requests using IAM credentials.
Namespace
Google \ Auth \ CredentialsMethods
__construct
selector
string
the IAM selector
token
string
the IAM token
getUpdateMetadataFunc
export a callback function which updates runtime metadata.
callable
updateMetadata
Updates metadata with the appropriate header metadata.
metadata
array
metadata hashmap
unusedAuthUri
string
optional auth uri
httpHandler
callable|null
callback which delivers psr7 request Note: this param is unused here, only included here for consistency with other credentials class
array
Constants
SELECTOR_KEY
Value: 'x-goog-iam-authority-selector'
TOKEN_KEY
Value: 'x-goog-iam-authorization-token'