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