From a0d9dc71dd0d2d0bdb15c251c1959319161b00e4 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Tue, 31 Oct 2017 14:36:30 +0300 Subject: [PATCH] Possible fix for omniauth-oauth2 package support --- lib/omniauth/strategies/ely.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/omniauth/strategies/ely.rb b/lib/omniauth/strategies/ely.rb index 07a3587..1c5760b 100644 --- a/lib/omniauth/strategies/ely.rb +++ b/lib/omniauth/strategies/ely.rb @@ -42,6 +42,10 @@ module OmniAuth def profile_url 'http://ely.by/u' + raw_info['id'].to_s end + + def callback_url + options[:redirect_uri] || (full_host + script_name + callback_path) + end end end end