omniauth-zoom 0.2.0 → 0.2.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 +4 -4
- data/.rubocop.yml +11 -9
- data/CHANGELOG.md +10 -4
- data/Rakefile +8 -6
- data/lib/omniauth-zoom/version.rb +1 -1
- data/lib/omniauth/strategies/zoom.rb +6 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d0df87b2e92b61de2b23d86f48177b2ff7a02763c41b5633c7a78c91f3630d5
|
4
|
+
data.tar.gz: 8c375cfa778c72415d4d565e63c214048dad00cf12193ee00492486a374f4fd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7997a196e912f1b63985f35c7ae43c548497f5355fb409794b9662804fe0f47ad043655cd1eeb80721381c102a3a2cd2f21fdcb70bcaec9c0bbbc05f3d78d558
|
7
|
+
data.tar.gz: 90718a1fc0fe0dd89c377db42e934f2a876ee000e56ec19ab19d36b80fbb7565811a845c8796685a66486d1b6a6899466f73546245d7311564388cfdfd7f8a0a
|
data/.rubocop.yml
CHANGED
@@ -23,12 +23,11 @@ Metrics/BlockNesting:
|
|
23
23
|
Max: 2
|
24
24
|
|
25
25
|
Layout/LineLength:
|
26
|
-
|
27
|
-
Enabled: false
|
26
|
+
Max: 120
|
28
27
|
|
29
28
|
Metrics/MethodLength:
|
30
29
|
CountComments: false
|
31
|
-
Max:
|
30
|
+
Max: 20
|
32
31
|
|
33
32
|
Metrics/ParameterLists:
|
34
33
|
Max: 4
|
@@ -39,10 +38,10 @@ Metrics/AbcSize:
|
|
39
38
|
|
40
39
|
Style/CollectionMethods:
|
41
40
|
PreferredMethods:
|
42
|
-
map:
|
43
|
-
reduce:
|
44
|
-
find:
|
45
|
-
find_all:
|
41
|
+
map: "collect"
|
42
|
+
reduce: "inject"
|
43
|
+
find: "detect"
|
44
|
+
find_all: "select"
|
46
45
|
|
47
46
|
Style/Documentation:
|
48
47
|
Enabled: false
|
@@ -60,10 +59,13 @@ Style/ExpandPathArguments:
|
|
60
59
|
Enabled: false
|
61
60
|
|
62
61
|
Style/HashSyntax:
|
63
|
-
EnforcedStyle:
|
62
|
+
EnforcedStyle: ruby19
|
64
63
|
|
65
64
|
Style/Lambda:
|
66
65
|
Enabled: false
|
67
66
|
|
68
67
|
Style/RaiseArgs:
|
69
|
-
EnforcedStyle: compact
|
68
|
+
EnforcedStyle: compact
|
69
|
+
|
70
|
+
Style/AsciiComments:
|
71
|
+
Enabled: false
|
data/CHANGELOG.md
CHANGED
@@ -1,16 +1,22 @@
|
|
1
|
-
#
|
1
|
+
# CHANGELOG
|
2
|
+
|
3
|
+
## 0.2.1
|
4
|
+
|
5
|
+
- fix rubocop warnings.
|
6
|
+
|
7
|
+
## 0.2.0
|
2
8
|
|
3
9
|
- refs #11 fix library dependencies.
|
4
10
|
- remove minitest-reporter.
|
5
11
|
|
6
|
-
|
12
|
+
## 0.1.2
|
7
13
|
|
8
14
|
- make the error handling when missing scope for reading user info better.
|
9
15
|
|
10
|
-
|
16
|
+
## 0.1.1
|
11
17
|
|
12
18
|
- refs #4 Add tests and make code coverage 100%.
|
13
19
|
|
14
|
-
|
20
|
+
## 0.1.0
|
15
21
|
|
16
22
|
- Initial release
|
data/Rakefile
CHANGED
@@ -1,10 +1,12 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bundler/gem_tasks'
|
4
|
+
require 'rake/testtask'
|
3
5
|
|
4
6
|
Rake::TestTask.new(:test) do |t|
|
5
|
-
t.libs <<
|
6
|
-
t.libs <<
|
7
|
-
t.test_files = FileList[
|
7
|
+
t.libs << 'test'
|
8
|
+
t.libs << 'lib'
|
9
|
+
t.test_files = FileList['test/**/*_test.rb']
|
8
10
|
end
|
9
11
|
|
10
|
-
task :
|
12
|
+
task default: :test
|
@@ -9,22 +9,22 @@ module OmniAuth
|
|
9
9
|
# OmniAuth strategy for zoom.us
|
10
10
|
class Zoom < OmniAuth::Strategies::OAuth2
|
11
11
|
option :name, 'zoom'
|
12
|
-
option :client_options, :
|
12
|
+
option :client_options, site: 'https://zoom.us'
|
13
13
|
|
14
14
|
uid { raw_info['id'] }
|
15
|
-
extra { {:
|
15
|
+
extra { {raw_info: raw_info} }
|
16
16
|
|
17
17
|
protected
|
18
18
|
|
19
19
|
def build_access_token
|
20
20
|
params = {
|
21
|
-
:
|
22
|
-
:
|
23
|
-
:
|
21
|
+
grant_type: 'authorization_code',
|
22
|
+
code: request.params['code'],
|
23
|
+
redirect_uri: callback_url
|
24
24
|
}
|
25
25
|
path = "#{client.options[:token_url]}?#{URI.encode_www_form(params)}"
|
26
26
|
headers_secret = Base64.strict_encode64("#{client.id}:#{client.secret}")
|
27
|
-
opts = {:
|
27
|
+
opts = {headers: {Authorization: "Basic #{headers_secret}"}}
|
28
28
|
|
29
29
|
res = client.request(:post, path, opts)
|
30
30
|
::OAuth2::AccessToken.from_hash(client, res.parsed)
|
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenji Koshikawa
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|
@@ -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.2.
|
183
|
+
documentation_uri: https://www.rubydoc.info/gems/omniauth-zoom/0.2.1
|
184
184
|
post_install_message:
|
185
185
|
rdoc_options: []
|
186
186
|
require_paths:
|