Tools for using the IAM API.

  • see https://cloud.google.com/iam/docsIAM Documentation
CloneableInstantiable
Constants
public Google\Auth\Iam::IAM_API_ROOT = 'https://iamcredentials.googleapis.com/v1'
public Google\Auth\Iam::SERVICE_ACCOUNT_NAME = 'projects/-/serviceAccounts/%s'
public Google\Auth\Iam::SIGN_BLOB_PATH = '%s:signBlob?alt=json'
Methods
public __construct(?callable $httpHandler = NULL)
 


    public signBlob( $email, $accessToken, $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.

    • return string The signed string, base64-encoded.
    Properties
    private $httpHandler
     


    • var callable
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only