Struct google_pubsub1_beta2::api::OidcToken
source · pub struct OidcToken {
pub audience: Option<String>,
pub service_account_email: Option<String>,
}
Expand description
Contains information needed for generating an OpenID Connect token.
This type is not used in any activity, and only used as part of another schema.
Fields§
§audience: Option<String>
Audience to be used when generating OIDC token. The audience claim identifies the recipients that the JWT is intended for. The audience value is a single case-sensitive string. Having multiple values (array) for the audience field is not supported. More info about the OIDC JWT token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified, the Push endpoint URL will be used.
service_account_email: Option<String>
Service account email to be used for generating the OIDC token. The caller (for CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must have the iam.serviceAccounts.actAs permission for the service account.