Class ExternalAccountAuthorizedUserCredentials

  • All Implemented Interfaces:
    QuotaProjectIdProvider, Serializable

    public class ExternalAccountAuthorizedUserCredentials
    extends GoogleCredentials
    OAuth2 credentials sourced using external identities through Workforce Identity Federation.

    Obtaining the initial access and refresh token can be done through the Google Cloud CLI.

     Example credentials file:
     {
       "type": "external_account_authorized_user",
       "audience": "//iam.googleapis.com/locations/global/workforcePools/$WORKFORCE_POOL_ID/providers/$PROVIDER_ID",
       "refresh_token": "refreshToken",
       "token_url": "https://sts.googleapis.com/v1/oauthtoken",
       "token_info_url": "https://sts.googleapis.com/v1/introspect",
       "client_id": "clientId",
       "client_secret": "clientSecret"
     }
     
    See Also:
    Serialized Form