omniauth-zoom 0.4.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -2
- data/lib/omniauth/strategies/zoom.rb +15 -6
- data/lib/omniauth-zoom/version.rb +1 -1
- data/omniauth-zoom.gemspec +2 -2
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1550529f0821d09adc0bf9fde6acc3ea2fb892b0e912dfaddbaa8cec8f133559
|
4
|
+
data.tar.gz: a44ede030fcd6550ea9f5ae081321421a6aff714ebe0014c02f84b7a6661fb7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 013e855bd30c682d0d21501c490d731cf2b57bef6954983ac1499e653a9db9b51ee4ee1f5d63de038c8602a47905adb94e8b7f7c0142c72dbe05e880d0be6829
|
7
|
+
data.tar.gz: 2a862410c6dcf1877378161217886a2be43a6c3f1229d832844639616f0ea3aff545219052ab20cd6be6163d2cb6a32610f1ff76a3e5a665ef48bbf9ed12a209
|
data/CHANGELOG.md
CHANGED
@@ -14,11 +14,20 @@ module OmniAuth
|
|
14
14
|
uid { raw_info['id'] }
|
15
15
|
extra { {raw_info: raw_info} }
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
params
|
21
|
-
|
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)
|
22
31
|
end
|
23
32
|
|
24
33
|
private
|
@@ -36,7 +45,7 @@ module OmniAuth
|
|
36
45
|
end
|
37
46
|
|
38
47
|
def callback_url
|
39
|
-
full_host +
|
48
|
+
full_host + callback_path
|
40
49
|
end
|
41
50
|
end
|
42
51
|
end
|
data/omniauth-zoom.gemspec
CHANGED
@@ -28,8 +28,8 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
29
|
spec.require_paths = ['lib']
|
30
30
|
|
31
|
-
spec.add_runtime_dependency 'omniauth', '~>
|
32
|
-
spec.add_runtime_dependency 'omniauth-oauth2', '
|
31
|
+
spec.add_runtime_dependency 'omniauth', '~> 2.0'
|
32
|
+
spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.7.1'
|
33
33
|
|
34
34
|
spec.add_development_dependency 'bundler'
|
35
35
|
spec.add_development_dependency 'codecov'
|
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.
|
4
|
+
version: 1.0.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-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: omniauth-oauth2
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.7.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.7.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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.
|
183
|
+
documentation_uri: https://www.rubydoc.info/gems/omniauth-zoom/1.0.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.
|
199
|
+
rubygems_version: 3.0.3
|
200
200
|
signing_key:
|
201
201
|
specification_version: 4
|
202
202
|
summary: OmniAuth strategy for zoom.us
|