Allow signet options to be passed through when authorizing

This commit is contained in:
Steven Bazyl committed 2015-07-20 12:37:03 -07:00
1 parent 2a9fd28176
commit a3bec66216
1 file changed
+2 -2
+2 -2
View File
@@ -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