Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit 552047c

Browse files
committed
Fix a bug introduced by new omniauth-oauth2 (1.4.0)
This basically reverts the commit recently introduced on the Oauth2 omniauth gem here: omniauth/omniauth-oauth2#70 omniauth/omniauth-oauth2@2615267 The callback_url in the base omniauth gem includes the query string so by removing the overridden version the query string was being included which was making Doorkeeper complain about a callback URL not being equal.
1 parent eacec5c commit 552047c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/omniauth/strategies/watermark.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ class OmniAuth::Strategies::Watermark < OmniAuth::Strategies::OAuth2
2323
}
2424
end
2525

26+
def callback_url
27+
full_host + script_name + callback_path
28+
end
29+
2630
def raw_info
2731
@raw_info ||= access_token.get('/api/v1/me.json').parsed
2832
end

0 commit comments

Comments
 (0)