Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lib/googleauth/external_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ class Credentials

# Create a ExternalAccount::Credentials
#
# @note Warning:
# This method does not validate the credential configuration. A security
# risk occurs when a credential configuration configured with malicious urls
# is used.
# When the credential configuration is accepted from an
# untrusted source, you should validate it before using with this method.
# See https://cloud.google.com/docs/authentication/external/externally-sourced-credentials
# for more details.
#
# @param options [Hash] Options for creating credentials
# @option options [IO] :json_key_io (required) An IO object containing the JSON key
# @option options [String,Array,nil] :scope The scope(s) to access
Expand Down
9 changes: 9 additions & 0 deletions lib/googleauth/impersonated_service_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ class ImpersonatedServiceAccountCredentials
# and request short-lived credentials for a service account
# that has the authorization that your use case requires.
#
# @note Warning:
# This method does not validate the credential configuration. A security
# risk occurs when a credential configuration configured with malicious urls
# is used.
# When the credential configuration is accepted from an
# untrusted source, you should validate it before using with this method.
# See https://cloud.google.com/docs/authentication/external/externally-sourced-credentials
# for more details.
#
# @param options [Hash] A hash of options to configure the credentials.
# @option options [Object] :base_credentials (required) The authenticated principal.
# It will be used as following:
Expand Down