Class: Google::Cloud::Tasks::V2::OidcToken

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/tasks/v2/doc/google/cloud/tasks/v2/target.rb

Overview

Contains information needed for generating an OpenID Connect token. This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.

Instance Attribute Summary collapse

Instance Attribute Details

#audienceString

Returns Audience to be used when generating OIDC token. If not specified, the URI specified in target will be used.

Returns:

  • (String)

    Audience to be used when generating OIDC token. If not specified, the URI specified in target will be used.



383
# File 'lib/google/cloud/tasks/v2/doc/google/cloud/tasks/v2/target.rb', line 383

class OidcToken; end

#service_account_emailString

Returns Service account email to be used for generating OIDC token. The service account must be within the same project as the queue. The caller must have iam.serviceAccounts.actAs permission for the service account.

Returns:

  • (String)

    Service account email to be used for generating OIDC token. The service account must be within the same project as the queue. The caller must have iam.serviceAccounts.actAs permission for the service account.



383
# File 'lib/google/cloud/tasks/v2/doc/google/cloud/tasks/v2/target.rb', line 383

class OidcToken; end