From 3c3a903e1d4b7a6ba6c316c73ba9128c745a1aca Mon Sep 17 00:00:00 2001 From: Neer Friedman Date: Thu, 27 Oct 2016 12:12:12 +0300 Subject: [PATCH] Fix issue with redirect_uri not identical between code and token phases See: https://github.com/intridea/omniauth-oauth2/issues/93 https://github.com/intridea/omniauth-oauth2/issues/93#issuecomment-227247801 https://github.com/intridea/oauth2/pull/269 --- lib/omniauth/strategies/applicaster.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/omniauth/strategies/applicaster.rb b/lib/omniauth/strategies/applicaster.rb index ed813a3..e6c8f63 100644 --- a/lib/omniauth/strategies/applicaster.rb +++ b/lib/omniauth/strategies/applicaster.rb @@ -26,6 +26,10 @@ def raw_info def client ::Applicaster::Accounts.oauth_client end + + def callback_url + full_host + script_name + callback_path + end end end end