lib/googleauth/external_account.rb in googleauth-1.6.0 vs lib/googleauth/external_account.rb in googleauth-1.7.0

- old
+ new

@@ -15,10 +15,11 @@ require "time" require "uri" require "googleauth/credentials_loader" require "googleauth/external_account/aws_credentials" require "googleauth/external_account/identity_pool_credentials" +require "googleauth/external_account/pluggable_credentials" module Google # Module Auth provides classes that provide Google-specific authorization # used to access Google APIs. module Auth @@ -77,9 +78,12 @@ end def make_external_account_credentials user_creds unless user_creds[:credential_source][:file].nil? && user_creds[:credential_source][:url].nil? return Google::Auth::ExternalAccount::IdentityPoolCredentials.new user_creds + end + unless user_creds[:credential_source][:executable].nil? + return Google::Auth::ExternalAccount::PluggableAuthCredentials.new user_creds end raise INVALID_EXTERNAL_ACCOUNT_TYPE end end end