Iam
class Iam (View source)
Tools for using the IAM API.
Constants
deprecated IAM_API_ROOT |
|
SIGN_BLOB_PATH |
|
SERVICE_ACCOUNT_NAME |
|
private IAM_API_ROOT_TEMPLATE |
|
Methods
__construct(callable $httpHandler = null, string $universeDomain = GetUniverseDomainInterface::DEFAULT_UNIVERSE_DOMAIN)
No description
string
signBlob(string $email, string $accessToken, string $stringToSign, array $delegates = [])
Sign a string using the IAM signBlob API.
Details
__construct(callable $httpHandler = null, string $universeDomain = GetUniverseDomainInterface::DEFAULT_UNIVERSE_DOMAIN)
No description
string
signBlob(string $email, string $accessToken, string $stringToSign, array $delegates = [])
Sign a string using the IAM signBlob API.
Note that signing using IAM requires your service account to have the
iam.serviceAccounts.signBlob
permission, part of the "Service Account
Token Creator" IAM role.