if ApiClient receives :authorization => false, respect that, and only default to oauth2 if :authorization is omitted
This commit is contained in:
parent
d59901bf1e
commit
bd1ce540d4
|
@ -81,7 +81,7 @@ module Google
|
||||||
).strip
|
).strip
|
||||||
# The writer method understands a few Symbols and will generate useful
|
# The writer method understands a few Symbols and will generate useful
|
||||||
# default authentication mechanisms.
|
# default authentication mechanisms.
|
||||||
self.authorization = options["authorization"] || :oauth_2
|
self.authorization = options.key?("authorization") ? options["authorization"] : :oauth_2
|
||||||
self.key = options["key"]
|
self.key = options["key"]
|
||||||
self.user_ip = options["user_ip"]
|
self.user_ip = options["user_ip"]
|
||||||
@discovery_uris = {}
|
@discovery_uris = {}
|
||||||
|
|
Loading…
Reference in New Issue