omniauth-zoom-v2 0.0.0 → 1.0.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 +4 -0
- data/README.md +5 -5
- data/lib/omniauth/strategies/{zoom_v2.rb → zoom.rb} +2 -4
- data/lib/omniauth/zoom_v2/version.rb +1 -1
- data/lib/omniauth-zoom-v2.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7d684e0d27ffb5132973ec8db5c5e3fdec30020bb0e8fa6b0863164c1a12debf
|
|
4
|
+
data.tar.gz: 815e06719d5d3d64b624ad08ea35a5140d0d97f65dde0cb6ef907a1b7bdb0a3f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a020629832c66b5ef7a134dfbef870f641175fee89a686473837c1db45d66e8361be7fd8b92a169b835e214dc4deeafa710f217ee6cd60b26f2cb143ee8681dc
|
|
7
|
+
data.tar.gz: c9c5d1e62a240eac191674b46291490996ba1b947f12a023ed62e355b843fb8d557f4225598706b7d6c5670dcefef725d732e4118b6637612a2f657c6d941b7e
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -38,7 +38,7 @@ Add the following to `config/initializers/devise.rb`:
|
|
|
38
38
|
```ruby
|
|
39
39
|
# config/initializers/devise.rb
|
|
40
40
|
Devise.setup do |config|
|
|
41
|
-
config.omniauth :
|
|
41
|
+
config.omniauth :zoom, ENV['ZOOM_CLIENT_ID'], ENV['ZOOM_CLIENT_SECRET']
|
|
42
42
|
end
|
|
43
43
|
```
|
|
44
44
|
|
|
@@ -57,7 +57,7 @@ Add the OmniAuth configuration to your Devise model:
|
|
|
57
57
|
class User < ApplicationRecord
|
|
58
58
|
devise :database_authenticatable, :registerable,
|
|
59
59
|
:recoverable, :rememberable, :validatable,
|
|
60
|
-
:omniauthable, omniauth_providers: [:
|
|
60
|
+
:omniauthable, omniauth_providers: [:zoom]
|
|
61
61
|
end
|
|
62
62
|
```
|
|
63
63
|
|
|
@@ -68,10 +68,10 @@ You can configure several options:
|
|
|
68
68
|
```ruby
|
|
69
69
|
# config/initializers/devise.rb
|
|
70
70
|
Devise.setup do |config|
|
|
71
|
-
config.omniauth :
|
|
71
|
+
config.omniauth :zoom, ENV['ZOOM_CLIENT_ID'], ENV['ZOOM_CLIENT_SECRET'],
|
|
72
72
|
{
|
|
73
73
|
scope: 'user:read:user', # Specify OAuth scopes
|
|
74
|
-
callback_path: '/custom/
|
|
74
|
+
callback_path: '/custom/zoom/callback', # Custom callback path
|
|
75
75
|
}
|
|
76
76
|
end
|
|
77
77
|
```
|
|
@@ -82,7 +82,7 @@ After successful authentication, the auth hash will be available in `request.env
|
|
|
82
82
|
|
|
83
83
|
```ruby
|
|
84
84
|
{
|
|
85
|
-
provider: '
|
|
85
|
+
provider: 'zoom',
|
|
86
86
|
uid: 'Wk9PTV9VU0VSX0lE',
|
|
87
87
|
info: {
|
|
88
88
|
name: 'Jane Dev',
|
|
@@ -4,17 +4,15 @@ require 'omniauth-oauth2'
|
|
|
4
4
|
|
|
5
5
|
module OmniAuth
|
|
6
6
|
module Strategies
|
|
7
|
-
class
|
|
7
|
+
class Zoom < OmniAuth::Strategies::OAuth2
|
|
8
8
|
USER_INFO_URL = 'https://api.zoom.us/v2/users/me'
|
|
9
9
|
|
|
10
|
-
option :name, '
|
|
11
|
-
|
|
10
|
+
option :name, 'zoom'
|
|
12
11
|
option :client_options, {
|
|
13
12
|
site: 'https://zoom.us',
|
|
14
13
|
authorize_url: '/oauth/authorize',
|
|
15
14
|
token_url: '/oauth/token'
|
|
16
15
|
}
|
|
17
|
-
|
|
18
16
|
option :authorize_options, [:scope, :state]
|
|
19
17
|
|
|
20
18
|
uid { raw_info['id'] }
|
data/lib/omniauth-zoom-v2.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-zoom-v2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Masahiro
|
|
@@ -50,17 +50,17 @@ files:
|
|
|
50
50
|
- README.md
|
|
51
51
|
- Rakefile
|
|
52
52
|
- lib/omniauth-zoom-v2.rb
|
|
53
|
-
- lib/omniauth/strategies/
|
|
53
|
+
- lib/omniauth/strategies/zoom.rb
|
|
54
54
|
- lib/omniauth/zoom_v2/version.rb
|
|
55
|
-
homepage: https://github.com/cadenza-tech/omniauth-zoom-v2/tree/
|
|
55
|
+
homepage: https://github.com/cadenza-tech/omniauth-zoom-v2/tree/v1.0.0
|
|
56
56
|
licenses:
|
|
57
57
|
- MIT
|
|
58
58
|
metadata:
|
|
59
|
-
homepage_uri: https://github.com/cadenza-tech/omniauth-zoom-v2/tree/
|
|
60
|
-
source_code_uri: https://github.com/cadenza-tech/omniauth-zoom-v2/tree/
|
|
61
|
-
changelog_uri: https://github.com/cadenza-tech/omniauth-zoom-v2/blob/
|
|
59
|
+
homepage_uri: https://github.com/cadenza-tech/omniauth-zoom-v2/tree/v1.0.0
|
|
60
|
+
source_code_uri: https://github.com/cadenza-tech/omniauth-zoom-v2/tree/v1.0.0
|
|
61
|
+
changelog_uri: https://github.com/cadenza-tech/omniauth-zoom-v2/blob/v1.0.0/CHANGELOG.md
|
|
62
62
|
bug_tracker_uri: https://github.com/cadenza-tech/omniauth-zoom-v2/issues
|
|
63
|
-
documentation_uri: https://rubydoc.info/gems/omniauth-zoom-v2/
|
|
63
|
+
documentation_uri: https://rubydoc.info/gems/omniauth-zoom-v2/1.0.0
|
|
64
64
|
funding_uri: https://patreon.com/CadenzaTech
|
|
65
65
|
rubygems_mfa_required: 'true'
|
|
66
66
|
rdoc_options: []
|