Skip to content

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/omniauth/strategies/constantcontact2.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
module OmniAuth
66
module Strategies
77
class ConstantContact2 < OmniAuth::Strategies::OAuth2
8-
8+
99
DEFAULT_RESPONSE_TYPE = 'code'
1010
DEFAULT_GRANT = 'authorization_code'
1111
API_PATH = 'https://api.constantcontact.com/v2'
12-
12+
1313
option :name, "constantcontact"
1414

1515
option :client_options, {
@@ -54,6 +54,10 @@ def raw_info
5454
}
5555
@raw_info ||= JSON.parse(access_token.get("#{API_PATH}/account/info", options).body)
5656
end
57+
58+
def callback_url
59+
full_host + script_name + callback_path
60+
end
5761
end
5862
end
5963
end

0 commit comments

Comments
 (0)