omniauth-zoom 1.0.0 → 1.1.0
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 +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/omniauth/strategies/zoom.rb +5 -14
- data/lib/omniauth-zoom/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e28c74dbaf27b2defef0e5a9623e5ad729b6e2d7ba66fe846602423cd89f603
|
|
4
|
+
data.tar.gz: aa36850de81e3338228c325ce926eec21bbe616ff2da332d4ce94c17cf8519c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d6127073bf7bbdd9fc588368d1af7abc59d413cb7eaf9cde09d281a429578d641c3496b37cb2eb1cd694e968dee94e43a72d4ba553e770957942f7a0a9e88d5
|
|
7
|
+
data.tar.gz: 1623c3f62a3876f2957e086df24a31fe67e42d222831e399a750be7175d01cad3bb7428a75c3952575036d9acc79cc1a102ca92c31a26696e607909bc36ff526
|
data/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
- change to use x-www-form-urlencoded in the request of getting tokens.(#18)
|
|
6
|
+
|
|
3
7
|
## 1.0.0
|
|
4
8
|
|
|
5
9
|
- allowed for omniauth 2.0 series.
|
|
6
10
|
|
|
11
|
+
## 0.4.0
|
|
12
|
+
|
|
13
|
+
- This release supported for omniauth 1.0 series.
|
|
14
|
+
- change to use x-www-form-urlencoded in the request of getting tokens.(#18)
|
|
15
|
+
|
|
7
16
|
## 0.3.0
|
|
8
17
|
|
|
9
18
|
- 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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
params = {
|
|
21
|
-
|
|
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
|
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: 1.
|
|
4
|
+
version: 1.1.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-
|
|
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/1.
|
|
183
|
+
documentation_uri: https://www.rubydoc.info/gems/omniauth-zoom/1.1.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.0.3
|
|
199
|
+
rubygems_version: 3.0.3.1
|
|
200
200
|
signing_key:
|
|
201
201
|
specification_version: 4
|
|
202
202
|
summary: OmniAuth strategy for zoom.us
|