Skip to content

Commit 97e76d6

Browse files
committed
1 parent ebcb8f4 commit 97e76d6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/omniauth/strategies/drip.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
require 'omniauth-oauth2'
1+
require "omniauth/strategies/oauth2"
22

33
module OmniAuth
44
module Strategies
55
class Drip < OmniAuth::Strategies::OAuth2
6-
76
option :name, 'drip'
87

98
option :access_token_options, {
@@ -38,6 +37,10 @@ def user_info
3837
def raw_info
3938
@raw_info ||= JSON.parse(access_token.get("/v2/accounts").body)
4039
end
40+
41+
def callback_url
42+
full_host + script_name + callback_path
43+
end
4144
end
4245
end
4346
end

0 commit comments

Comments
 (0)