From 07d4adb6d343e38041d6471c5bc398fd5009b910 Mon Sep 17 00:00:00 2001 From: Gan Dong Date: Sat, 22 Jul 2017 16:17:33 +0800 Subject: [PATCH] Add redirect_uri to access_token params --- lib/auth/oauth_gems.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/auth/oauth_gems.rb b/lib/auth/oauth_gems.rb index 22f0a45..0184793 100644 --- a/lib/auth/oauth_gems.rb +++ b/lib/auth/oauth_gems.rb @@ -226,5 +226,10 @@ def authorize_params end end end + + def callback_url + options[:redirect_uri] || (full_host + script_name + callback_path) + end + end