omniauth-whalespace 0.1.0 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca7d3eb43a4823fb908c65d9978ec2ba22029d3e69916254b5146b7838adeda5
4
- data.tar.gz: 41cc7ba37a4cd33b68388c0df08072971524d792da18527b4eb609cc9186df31
3
+ metadata.gz: c90aa327c07b64575cdc165a538ac6a1444ca181300d6ab049dad6b9845f2337
4
+ data.tar.gz: f1ff2ea6e9f27f4d578b5374183d8d377960a6ae6396cb17a4aad765cca87de0
5
5
  SHA512:
6
- metadata.gz: 6c1dfaa3c5522d5690e19af44bb0685afcb5f6378eb249c024b4040d52a726116dd16fb0fcccfb72603a928e7b7d0ba4fd6008d7eba4a51dccb8cdf5ef713032
7
- data.tar.gz: 22714e7bddcd061c5b9a583958dc1a3be0d01d7390d6a23457d7d2910b183be30ee371417ecaf465a63c7b9a6aa841d4fdbf7f50b717cca6286978af2aff44ee
6
+ metadata.gz: 56382ca98e241f3948e5df23c807eee8901054000147c63a0f5dfdec9a4de0ebe2b22bbc212cf0427cd18658488be105181e1b578f323c86ec4ad9f277d086e1
7
+ data.tar.gz: 8ba66a8dbccabaffc0853c4bee70e525e97912d03849e964666be8f181bddade76ba4bb3df305000eb63b62367ca3169a4635d8b595b0cbf278f71bad74fb026
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.0] - 2022-05-29
4
+ - Add user_type to info
5
+
3
6
  ## [0.1.0] - 2022-03-25
4
7
 
5
8
  - Initial release
data/Gemfile.lock CHANGED
@@ -1,39 +1,42 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-whalespace (0.1.0)
4
+ omniauth-whalespace (0.3.0)
5
5
  omniauth-oauth2 (~> 1.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  ast (2.4.2)
11
- faraday (2.2.0)
12
- faraday-net_http (~> 2.0)
11
+ base64 (0.2.0)
12
+ faraday (2.8.1)
13
+ base64
14
+ faraday-net_http (>= 2.0, < 3.1)
13
15
  ruby2_keywords (>= 0.0.4)
14
- faraday-net_http (2.0.1)
16
+ faraday-net_http (3.0.2)
15
17
  hashie (5.0.0)
16
- jwt (2.3.0)
17
- multi_json (1.15.0)
18
+ jwt (2.8.2)
19
+ base64
18
20
  multi_xml (0.6.0)
19
- oauth2 (1.4.9)
21
+ oauth2 (2.0.9)
20
22
  faraday (>= 0.17.3, < 3.0)
21
23
  jwt (>= 1.0, < 3.0)
22
- multi_json (~> 1.3)
23
24
  multi_xml (~> 0.5)
24
- rack (>= 1.2, < 3)
25
- omniauth (2.0.4)
25
+ rack (>= 1.2, < 4)
26
+ snaky_hash (~> 2.0)
27
+ version_gem (~> 1.1)
28
+ omniauth (2.1.2)
26
29
  hashie (>= 3.4.6)
27
- rack (>= 1.6.2, < 3)
30
+ rack (>= 2.2.3)
28
31
  rack-protection
29
- omniauth-oauth2 (1.7.2)
30
- oauth2 (~> 1.4)
31
- omniauth (>= 1.9, < 3)
32
+ omniauth-oauth2 (1.8.0)
33
+ oauth2 (>= 1.4, < 3)
34
+ omniauth (~> 2.0)
32
35
  parallel (1.22.0)
33
36
  parser (3.1.1.0)
34
37
  ast (~> 2.4.1)
35
- rack (2.2.3)
36
- rack-protection (2.2.0)
38
+ rack (3.1.7)
39
+ rack-protection (3.0.6)
37
40
  rack
38
41
  rainbow (3.1.1)
39
42
  rake (13.0.6)
@@ -52,7 +55,11 @@ GEM
52
55
  parser (>= 3.1.1.0)
53
56
  ruby-progressbar (1.11.0)
54
57
  ruby2_keywords (0.0.5)
58
+ snaky_hash (2.0.1)
59
+ hashie
60
+ version_gem (~> 1.1, >= 1.1.1)
55
61
  unicode-display_width (2.1.0)
62
+ version_gem (1.1.4)
56
63
 
57
64
  PLATFORMS
58
65
  x86_64-linux
@@ -8,8 +8,8 @@ module OmniAuth
8
8
  option :name, "whalespace"
9
9
  option :client_options,
10
10
  site: "https://auth.whalespace.io",
11
- authorize_url: "https://auth.whalespace.io/oauth2/v1/authorize",
12
- token_url: "oauth2/v1/token"
11
+ authorize_url: "https://auth.whalespace.io/oauth2/v1.1/authorize",
12
+ token_url: "oauth2/v1.1/token"
13
13
 
14
14
  uid do
15
15
  raw_info["sid"]
@@ -18,7 +18,8 @@ module OmniAuth
18
18
  info do
19
19
  {
20
20
  name: raw_info.dig("name", "fullName"),
21
- email: raw_info["primaryEmail"]
21
+ email: raw_info["primaryEmail"],
22
+ user_type: raw_info["userType"]
22
23
  }
23
24
  end
24
25
 
@@ -27,7 +28,7 @@ module OmniAuth
27
28
  end
28
29
 
29
30
  def raw_info
30
- @raw_info ||= access_token.get("https://api.whalespace.io/oauth2/v1/userinfo").parsed
31
+ @raw_info ||= access_token.get("https://api.whalespace.io/oauth2/v1.1/userinfo").parsed
31
32
  end
32
33
  end
33
34
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Omniauth
4
4
  module Whalespace
5
- VERSION = "0.1.0"
5
+ VERSION = "0.3.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-whalespace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - 이창환
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-25 00:00:00.000000000 Z
11
+ date: 2024-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
66
  requirements: []
67
- rubygems_version: 3.1.2
67
+ rubygems_version: 3.4.3
68
68
  signing_key:
69
69
  specification_version: 4
70
70
  summary: Whalespace OAuth2 Strategy for OmniAuth