omniauth-zoom 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d246403d1f6fa5b2f75b5795caf6c83cf1a0561b9a6b2d80c43e282eea43a8f
4
- data.tar.gz: f2c62caf65239376375485788145294c047c54c0ac1505b8090ce6293840b668
3
+ metadata.gz: d1f3ac560a36bcf9573b214ebc538cacbfa703cf4c4b6420e9039ab4d1a9c378
4
+ data.tar.gz: ba09c71f38e103c73003bfe8fd5dc192045e9dc2acd1735b5c6e32d51d64659b
5
5
  SHA512:
6
- metadata.gz: 4edcc421f602e976b2050e980b094f1b81a856550ed69d17b47a12303dfa6192a19f4f74ea78d043d39be3348c3eb832c14c612797d65ad8562e784710137287
7
- data.tar.gz: 2b4f7eb1c700336785a906f54c5f974d1da0d0dd178c643a56caa0f8d8611e9c2d74e5c8ecebd62bdbf2b548f33e5419af1218b8d0f04912a6724d530d56db5d
6
+ metadata.gz: 3a8923a0dc6a46c22df5d86825f4814de8de59f550e3ba80f40b56f09ee26312781ef4c324b195570686462edf97f1473e82b851334cdec857fbc86c02c71a09
7
+ data.tar.gz: bf57d514a0b2f692c53e81782ff21d38d9468290016dafb3688cad295f500db672de9ef7d60158d9cb69a7c31da3d7f90f30b783ce7a69eb32ec2d557561c829
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.4.0
4
+
5
+ - change to use x-www-form-urlencoded in the request of getting tokens.(#18)
6
+
3
7
  ## 0.3.0
4
8
 
5
9
  - be specified dependency for omniauth 1.9.
@@ -14,20 +14,11 @@ module OmniAuth
14
14
  uid { raw_info['id'] }
15
15
  extra { {raw_info: raw_info} }
16
16
 
17
- protected
18
-
19
- def build_access_token
20
- params = {
21
- grant_type: 'authorization_code',
22
- code: request.params['code'],
23
- redirect_uri: callback_url
24
- }
25
- path = "#{client.options[:token_url]}?#{URI.encode_www_form(params)}"
26
- headers_secret = Base64.strict_encode64("#{client.id}:#{client.secret}")
27
- opts = {headers: {Authorization: "Basic #{headers_secret}"}}
28
-
29
- res = client.request(:post, path, opts)
30
- ::OAuth2::AccessToken.from_hash(client, res.parsed)
17
+ def token_params
18
+ params = super
19
+ params[:headers] ||= {}
20
+ params[:headers][:Authorization] = format('Basic %s', Base64.strict_encode64("#{client.id}:#{client.secret}"))
21
+ params
31
22
  end
32
23
 
33
24
  private
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Zoom
5
- VERSION = '0.3.1'
5
+ VERSION = '0.4.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-zoom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenji Koshikawa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-10 00:00:00.000000000 Z
11
+ date: 2021-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -180,7 +180,7 @@ metadata:
180
180
  homepage_uri: https://github.com/koshilife/omniauth-zoom
181
181
  source_code_uri: https://github.com/koshilife/omniauth-zoom
182
182
  changelog_uri: https://github.com/koshilife/omniauth-zoom/blob/master/CHANGELOG.md
183
- documentation_uri: https://www.rubydoc.info/gems/omniauth-zoom/0.3.1
183
+ documentation_uri: https://www.rubydoc.info/gems/omniauth-zoom/0.4.0
184
184
  post_install_message:
185
185
  rdoc_options: []
186
186
  require_paths:
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  - !ruby/object:Gem::Version
197
197
  version: '0'
198
198
  requirements: []
199
- rubygems_version: 3.1.4
199
+ rubygems_version: 3.1.6
200
200
  signing_key:
201
201
  specification_version: 4
202
202
  summary: OmniAuth strategy for zoom.us