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.
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Doximity
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -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: options.redirect_uri,
55
+ redirect_uri: redirect_uri.to_s,
54
56
  grant_type: options.grant_type,
55
57
  code: code
56
58
  )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-doximity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: