From a3bec66216f9cf9fdaa14254f2951d586573b024 Mon Sep 17 00:00:00 2001 From: Steven Bazyl Date: Mon, 20 Jul 2015 12:37:03 -0700 Subject: [PATCH] Allow signet options to be passed through when authorizing --- lib/google/api_client/auth/installed_app.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/google/api_client/auth/installed_app.rb b/lib/google/api_client/auth/installed_app.rb index bdbb655d5..b97f5d98a 100644 --- a/lib/google/api_client/auth/installed_app.rb +++ b/lib/google/api_client/auth/installed_app.rb @@ -83,7 +83,7 @@ module Google # # @return [Signet::OAuth2::Client] # Authorization instance, nil if user cancelled. - def authorize(storage=nil) + def authorize(storage=nil, options=nil) auth = @authorization server = WEBrick::HTTPServer.new( @@ -105,7 +105,7 @@ module Google server.stop end - Launchy.open(auth.authorization_uri.to_s) + Launchy.open(auth.authorization_uri(options).to_s) server.start ensure server.shutdown