omniauth-keycloak 1.5.0 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d8d99fcc7f0918b7fb7dd8190badbb8a0f47864171ad4f2db3a5f7576f010ac
4
- data.tar.gz: 5ecaebf0b46ac4c953c93d53642d7dc71e074c68dc54736e3958f1f44e4489fb
3
+ metadata.gz: 9f8daef8518d7f497c7576cec5dd3bbfb57c5ba810a29a51675f096fd4a54a43
4
+ data.tar.gz: fabb6b4e17276604f05c8d565dba3e46505f4478df1cd531f1ff6317dab6f3ac
5
5
  SHA512:
6
- metadata.gz: 24b46f0e102b524ee70ce0a751135d7ea4eec64db1406d2a67af2c45434e634d61879b0fd78a6e57bbdc1f2632495a1d09335bd61069ad59bb86a0b807895146
7
- data.tar.gz: d7165cafe46c8cd15aba9efff3229e91287061e6d52853b4e64ae0fc23618e4bc49b5d45aae11badaff048ba0e08d5db8a8724f5f56b266fb53669ff3621a403
6
+ metadata.gz: 7b89cf229ad05ab331abbff1f2d87bee5173f8f7d0c4128ce6dd51ab00bf4ea376c10fee93829e799c9014b8a40cc25fbdfb71de5a60aef4e2e85bfd9a194daf
7
+ data.tar.gz: 02171316cc22d0bce945b35a2bbf1ffd2f9b9a8a6ddd2fb8c3b73a33b5ce2f7268c18642eb0890c343856109f54305647aae4be496ba8c6f97da4eefe54fa271
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## [v1.5.1](https://github.com/ccrockett/omniauth-keycloak/tree/v1.5.1) (2023-03-01)
4
+
5
+ [Full Changelog](https://github.com/ccrockett/omniauth-keycloak/compare/v1.5.0...v1.5.1)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Add ability to get params from request and pass thru to keycloak url [\#24](https://github.com/ccrockett/omniauth-keycloak/pull/24) ([ccrockett](https://github.com/ccrockett))
10
+
11
+ ## [v1.5.0](https://github.com/ccrockett/omniauth-keycloak/tree/v1.5.0) (2023-03-01)
12
+
13
+ [Full Changelog](https://github.com/ccrockett/omniauth-keycloak/compare/v1.4.4...v1.5.0)
14
+
15
+ **Closed issues:**
16
+
17
+ - When in test mode, setup phase tries to fetch Keycloak configuration [\#32](https://github.com/ccrockett/omniauth-keycloak/issues/32)
18
+
19
+ **Merged pull requests:**
20
+
21
+ - Fix typo [\#34](https://github.com/ccrockett/omniauth-keycloak/pull/34) ([Kazhuu](https://github.com/Kazhuu))
22
+ - Skip fetching keycloak configuration when in testing mode [\#33](https://github.com/ccrockett/omniauth-keycloak/pull/33) ([Kazhuu](https://github.com/Kazhuu))
23
+
3
24
  ## [v1.4.4](https://github.com/ccrockett/omniauth-keycloak/tree/v1.4.4) (2022-07-25)
4
25
 
5
26
  [Full Changelog](https://github.com/ccrockett/omniauth-keycloak/compare/v1.4.3...v1.4.4)
@@ -7,7 +28,6 @@
7
28
  **Merged pull requests:**
8
29
 
9
30
  - Fix NoMethodError when querying for JSON Web keys [\#31](https://github.com/ccrockett/omniauth-keycloak/pull/31) ([Kazhuu](https://github.com/Kazhuu))
10
- - expose id\_token inside extra hash of auth hash [\#26](https://github.com/ccrockett/omniauth-keycloak/pull/26) ([rah-wtag](https://github.com/rah-wtag))
11
31
 
12
32
  ## [v1.4.3](https://github.com/ccrockett/omniauth-keycloak/tree/v1.4.3) (2022-07-24)
13
33
 
@@ -38,10 +58,11 @@
38
58
 
39
59
  - Get Request is now Post Request [\#23](https://github.com/ccrockett/omniauth-keycloak/issues/23)
40
60
  - Is the "/auth/" part mandatory in Keycloak's configuration URL? [\#19](https://github.com/ccrockett/omniauth-keycloak/issues/19)
41
- - Add example instructions for Keycloak configuration [\#14](https://github.com/ccrockett/omniauth-keycloak/issues/14)
61
+ - Keycloak reports incorrect redirect\_uri [\#14](https://github.com/ccrockett/omniauth-keycloak/issues/14)
42
62
 
43
63
  **Merged pull requests:**
44
64
 
65
+ - expose id\_token inside extra hash of auth hash [\#26](https://github.com/ccrockett/omniauth-keycloak/pull/26) ([Riz-v](https://github.com/Riz-v))
45
66
  - Bump bindata from 2.4.9 to 2.4.10 [\#22](https://github.com/ccrockett/omniauth-keycloak/pull/22) ([dependabot[bot]](https://github.com/apps/dependabot))
46
67
 
47
68
  ## [v1.4.0](https://github.com/ccrockett/omniauth-keycloak/tree/v1.4.0) (2021-12-18)
data/Gemfile.lock CHANGED
@@ -1,30 +1,41 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-keycloak (1.4.4)
4
+ omniauth-keycloak (1.5.1)
5
5
  faraday
6
6
  json-jwt (> 1.13.0)
7
7
  omniauth (>= 2.0)
8
- omniauth-oauth2 (~> 1.7.1)
8
+ omniauth-oauth2 (>= 1.7, < 1.9)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activesupport (7.0.4.2)
13
+ activesupport (7.1.0)
14
+ base64
15
+ bigdecimal
14
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
+ connection_pool (>= 2.2.5)
18
+ drb
15
19
  i18n (>= 1.6, < 2)
16
20
  minitest (>= 5.1)
21
+ mutex_m
17
22
  tzinfo (~> 2.0)
18
- addressable (2.8.0)
19
- public_suffix (>= 2.0.2, < 5.0)
23
+ addressable (2.8.5)
24
+ public_suffix (>= 2.0.2, < 6.0)
20
25
  aes_key_wrap (1.1.0)
26
+ base64 (0.1.1)
27
+ bigdecimal (3.1.4)
21
28
  bindata (2.4.15)
22
29
  concurrent-ruby (1.2.2)
30
+ connection_pool (2.4.1)
23
31
  crack (0.4.5)
24
32
  rexml
25
- diff-lcs (1.4.4)
33
+ diff-lcs (1.5.0)
26
34
  docile (1.4.0)
27
- faraday (2.7.4)
35
+ drb (2.1.1)
36
+ ruby2_keywords
37
+ faraday (2.7.11)
38
+ base64
28
39
  faraday-net_http (>= 2.0, < 3.1)
29
40
  ruby2_keywords (>= 0.0.4)
30
41
  faraday-follow_redirects (0.3.0)
@@ -32,7 +43,7 @@ GEM
32
43
  faraday-net_http (3.0.2)
33
44
  hashdiff (1.0.1)
34
45
  hashie (5.0.0)
35
- i18n (1.12.0)
46
+ i18n (1.14.1)
36
47
  concurrent-ruby (~> 1.0)
37
48
  json-jwt (1.16.3)
38
49
  activesupport (>= 4.2)
@@ -40,9 +51,10 @@ GEM
40
51
  bindata
41
52
  faraday (~> 2.0)
42
53
  faraday-follow_redirects
43
- jwt (2.7.0)
44
- minitest (5.17.0)
54
+ jwt (2.7.1)
55
+ minitest (5.20.0)
45
56
  multi_xml (0.6.0)
57
+ mutex_m (0.1.2)
46
58
  oauth2 (2.0.9)
47
59
  faraday (>= 0.17.3, < 3.0)
48
60
  jwt (>= 1.0, < 3.0)
@@ -54,42 +66,42 @@ GEM
54
66
  hashie (>= 3.4.6)
55
67
  rack (>= 2.2.3)
56
68
  rack-protection
57
- omniauth-oauth2 (1.7.3)
69
+ omniauth-oauth2 (1.8.0)
58
70
  oauth2 (>= 1.4, < 3)
59
- omniauth (>= 1.9, < 3)
60
- public_suffix (4.0.6)
61
- rack (3.0.4.1)
62
- rack-protection (3.0.5)
71
+ omniauth (~> 2.0)
72
+ public_suffix (5.0.3)
73
+ rack (3.0.8)
74
+ rack-protection (3.0.6)
63
75
  rack
64
- rake (13.0.1)
65
- rexml (3.2.5)
66
- rspec (3.10.0)
67
- rspec-core (~> 3.10.0)
68
- rspec-expectations (~> 3.10.0)
69
- rspec-mocks (~> 3.10.0)
70
- rspec-core (3.10.1)
71
- rspec-support (~> 3.10.0)
72
- rspec-expectations (3.10.1)
76
+ rake (13.0.6)
77
+ rexml (3.2.6)
78
+ rspec (3.12.0)
79
+ rspec-core (~> 3.12.0)
80
+ rspec-expectations (~> 3.12.0)
81
+ rspec-mocks (~> 3.12.0)
82
+ rspec-core (3.12.2)
83
+ rspec-support (~> 3.12.0)
84
+ rspec-expectations (3.12.3)
73
85
  diff-lcs (>= 1.2.0, < 2.0)
74
- rspec-support (~> 3.10.0)
75
- rspec-mocks (3.10.2)
86
+ rspec-support (~> 3.12.0)
87
+ rspec-mocks (3.12.6)
76
88
  diff-lcs (>= 1.2.0, < 2.0)
77
- rspec-support (~> 3.10.0)
78
- rspec-support (3.10.3)
89
+ rspec-support (~> 3.12.0)
90
+ rspec-support (3.12.1)
79
91
  ruby2_keywords (0.0.5)
80
- simplecov (0.21.2)
92
+ simplecov (0.22.0)
81
93
  docile (~> 1.1)
82
94
  simplecov-html (~> 0.11)
83
95
  simplecov_json_formatter (~> 0.1)
84
96
  simplecov-html (0.12.3)
85
- simplecov_json_formatter (0.1.3)
97
+ simplecov_json_formatter (0.1.4)
86
98
  snaky_hash (2.0.1)
87
99
  hashie
88
100
  version_gem (~> 1.1, >= 1.1.1)
89
101
  tzinfo (2.0.6)
90
102
  concurrent-ruby (~> 1.0)
91
- version_gem (1.1.1)
92
- webmock (3.14.0)
103
+ version_gem (1.1.3)
104
+ webmock (3.19.1)
93
105
  addressable (>= 2.8.0)
94
106
  crack (>= 0.3.2)
95
107
  hashdiff (>= 0.4.0, < 2.0.0)
data/README.md CHANGED
@@ -112,6 +112,8 @@ end
112
112
  name: 'keycloak'
113
113
  end
114
114
  ```
115
+ * __Pass params from request thru to Keycloak__
116
+ See [PR #24](https://github.com/ccrockett/omniauth-keycloak/pull/24) for details on how to configure this.
115
117
 
116
118
  ## Contributing
117
119
 
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Keycloak
3
- VERSION = "1.5.0"
3
+ VERSION = "1.5.2"
4
4
  end
5
5
  end
@@ -98,6 +98,11 @@ module OmniAuth
98
98
  deep_symbolize(options.auth_token_params))
99
99
  end
100
100
 
101
+ def request_phase
102
+ options.authorize_options.each {|key| options[key] = request.params[key.to_s] }
103
+ super
104
+ end
105
+
101
106
  uid{ raw_info['sub'] }
102
107
 
103
108
  info do
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
 
25
25
 
26
26
  spec.add_dependency "omniauth", ">= 2.0"
27
- spec.add_dependency "omniauth-oauth2", "~> 1.7.1"
27
+ spec.add_dependency "omniauth-oauth2", ">= 1.7", "< 1.9"
28
28
  spec.add_dependency "json-jwt", "> 1.13.0"
29
29
  spec.add_dependency "faraday"
30
30
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-keycloak
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Crockett
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-01 00:00:00.000000000 Z
11
+ date: 2024-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -28,16 +28,22 @@ dependencies:
28
28
  name: omniauth-oauth2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '1.7'
34
+ - - "<"
32
35
  - !ruby/object:Gem::Version
33
- version: 1.7.1
36
+ version: '1.9'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '1.7'
44
+ - - "<"
39
45
  - !ruby/object:Gem::Version
40
- version: 1.7.1
46
+ version: '1.9'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: json-jwt
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -166,7 +172,7 @@ homepage: https://github.com/ccrockett/omniauth-keycloak
166
172
  licenses:
167
173
  - MIT
168
174
  metadata: {}
169
- post_install_message:
175
+ post_install_message:
170
176
  rdoc_options: []
171
177
  require_paths:
172
178
  - lib
@@ -181,8 +187,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
187
  - !ruby/object:Gem::Version
182
188
  version: 3.1.2
183
189
  requirements: []
184
- rubygems_version: 3.3.7
185
- signing_key:
190
+ rubygems_version: 3.4.22
191
+ signing_key:
186
192
  specification_version: 4
187
193
  summary: Omniauth strategy for Keycloak
188
194
  test_files: []