From 85fdbe117c2a4400d001a6368cc359d88f40abc7 Mon Sep 17 00:00:00 2001 From: Tom Milewski Date: Wed, 4 Sep 2013 16:06:27 -0400 Subject: [PATCH] Don't override callback_url Attempt to correct #28 Overridden method discarded the query_string --- lib/omniauth/strategies/oauth2.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/omniauth/strategies/oauth2.rb b/lib/omniauth/strategies/oauth2.rb index ad528b2..8836fbd 100644 --- a/lib/omniauth/strategies/oauth2.rb +++ b/lib/omniauth/strategies/oauth2.rb @@ -33,10 +33,6 @@ def client ::OAuth2::Client.new(options.client_id, options.client_secret, deep_symbolize(options.client_options)) end - def callback_url - full_host + script_name + callback_path - end - credentials do hash = {'token' => access_token.token} hash.merge!('refresh_token' => access_token.refresh_token) if access_token.expires? && access_token.refresh_token