omniauth-doximity 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -42,6 +42,8 @@ module OmniAuth
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def exchange_code(code)
|
45
|
+
redirect_uri = URI(options.redirect_uri)
|
46
|
+
redirect_uri.query = request.params.except('code').to_query
|
45
47
|
uri = URI::HTTPS.build(
|
46
48
|
host: options.client_options.site,
|
47
49
|
path: options.client_options.token_path
|
@@ -50,7 +52,7 @@ module OmniAuth
|
|
50
52
|
req.set_form_data(
|
51
53
|
client_id: consumer.key,
|
52
54
|
client_secret: consumer.secret,
|
53
|
-
redirect_uri:
|
55
|
+
redirect_uri: redirect_uri.to_s,
|
54
56
|
grant_type: options.grant_type,
|
55
57
|
code: code
|
56
58
|
)
|