lib/omniauth/strategies/goto.rb in omniauth-goto-1.0.0 vs lib/omniauth/strategies/goto.rb in omniauth-goto-2.0.0
- old
+ new
@@ -72,10 +72,10 @@
def smart_client_secret
@smart_client_secret ||= env['omniauth.params']['client_secret'] || env['omniauth.strategy'].options.client_secret
end
def callback_url
- full_host + script_name + callback_path
+ options.redirect_url || (full_host + callback_path)
end
def basic_auth_header(client_id, client_secret)
"Basic " + Base64.strict_encode64("#{client_id}:#{client_secret}")
end
\ No newline at end of file