googleauth - Class Google::Auth::ExternalAccount::Credentials (v1.12.2)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 1.12.2keyboard_arrow_down
Reference documentation and code samples for the googleauth class Google::Auth::ExternalAccount::Credentials.
Provides an entrypoint for all Exernal Account credential classes.
Methods
.make_creds
def self . make_creds ( options = {})
Create a ExternalAccount::Credentials
Parameters
json_key_io (IO) — an IO from which the JSON key can be read
scope (String, Array, nil) — the scope(s) to access
Raises
(MISSING_CREDENTIAL_SOURCE)
.read_json_key
def self . read_json_key ( json_key_io )
Reads the required fields from the JSON.
Constants
AWS_SUBJECT_TOKEN_TYPE
value: "urn:ietf:params:aws:token-type:aws4_request".freeze The subject token type used for AWS external_account credentials.
MISSING_CREDENTIAL_SOURCE
value: "missing credential source for external account".freeze
INVALID_EXTERNAL_ACCOUNT_TYPE
value: "credential source is not supported external account type".freeze
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[]]