omniauth-miro 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5cc474775b124338f8f92ae946477d796f6e56a6d05d37a766061458685cd6e
4
- data.tar.gz: 17a7311149f2706f295defca7024fdac8dd5ddb922288852b73842c1ec901804
3
+ metadata.gz: 187ca0de86709d87ecd64b49f963aac4f165761a7b86eec04cca58e23d68bb0f
4
+ data.tar.gz: c15998209db5d1e07eaa431b73bb7967d0214b93fb26fa6e8b95c29d801cdf8b
5
5
  SHA512:
6
- metadata.gz: 2d89e74ef9d0bebf0fc1def6070f748658cc41a2c3bd23e5b31a227a469a2945348655a60cc17af5c9ba036fabde98f0afe32ff40bd68b9eb6dbc6e85abcf55d
7
- data.tar.gz: 01a5779d24c2661b4687d69a12f0e9c51cfdf202e30d7673ea7dd4a6e4fd807b08c2c0576801379cef3e0caba1ab900f03614ce0707d3cca478f7eb7f2877b31
6
+ metadata.gz: be08a6b64feac9bab8242b4e9dc46e5229e4bcc09d46bffd7330acd2a92c2eefb4f99629d8a384e95cb2b890e7d399faa97777ff60334546e4a39c2742a93b00
7
+ data.tar.gz: af9d8caa433b195cd66dbaa140d717fc8337e9a21f2ba78d3ceb00a9eab3bfdcc1ebdd2ddd4fd11f2288893e5642b380751d413a32b6630cc81f6daf6947e4d2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.1]
4
+
5
+ - Bugfix: added client secret to token params request
6
+ - Updated to full url for context endpoint
7
+
3
8
  ## [1.0.0]
4
9
 
5
10
  - New omniauth-miro strategy for Miro OAuth 2.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-miro (1.0.0)
4
+ omniauth-miro (1.0.1)
5
5
  omniauth (>= 1, < 3)
6
6
  omniauth-oauth2 (~> 1.1)
7
7
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Miro
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.1'
6
6
  end
7
7
  end
@@ -31,12 +31,20 @@ module OmniAuth
31
31
  end
32
32
 
33
33
  def raw_info
34
- @raw_info ||= access_token.get('/v1/oauth-token').parsed
34
+ @raw_info ||= access_token.get('https://api.miro.com/v1/oauth-token').parsed
35
35
  end
36
36
 
37
37
  def callback_url
38
38
  full_host + callback_path
39
39
  end
40
+
41
+ def token_params
42
+ super.tap do |params|
43
+ params[:client_id] = client.id
44
+ params[:client_secret] = client.secret
45
+ params[:redirect_uri] = callback_url
46
+ end
47
+ end
40
48
  end
41
49
  end
42
50
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-miro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rewind Software Inc. | Calvin Chen