keycloak-api-rails 0.11.1 → 0.11.2

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: 90c326858b9b9eb917fb48a1de41b8bb04bda9ee9c335c9d54cc32a2cf1e6cf1
4
- data.tar.gz: 0f2e7ffb1ff96cf183db47552561d7bde77c98178f2568874ef1ddfe55c09a9f
3
+ metadata.gz: ff480abdc3a9317e66060416095339c0612ff902fec1200bf1178c7445bfad39
4
+ data.tar.gz: 29d7cb681cb2b05d801ceac2634b6773278516413112500968cdfe5fe7cae76e
5
5
  SHA512:
6
- metadata.gz: c9bf1dd58e9da0fbc485c12cf9dc73ccb31d88bef5158107a8d141542380a818d89fc90810cdfb3a867048d854ed616d0b640d8edb17d9d48999cc2ec8469b77
7
- data.tar.gz: 39e57c6bacf0c31bb94bfdd53e454745bb3c100e831b804e840183b80b6472338731b01a5fcb70c9b46029c01e118670a3f4e503bf6003bbb449c60915a4c0f1
6
+ metadata.gz: 3bd3bac623390a4efe1cf24a80106c820e2b66c186350ddab00140ccab44f1a919117afb28a2bdcf02651cc1b780d0e9cfc4e75256d6083339e140bdd44669f6
7
+ data.tar.gz: fdbc7a9b37f8d5efdf5c11ee9ca01075ccfe9bbfaf7d5babfda1653eef9557a275c34487569d4589c2f5902c8ff13a7877f5e6d55133b0e4a7b9b4bd4fb00a58
data/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.11.2] - 2022-03-30
9
+
10
+ * Update `Gemfile.lock` to avoid wrong CVE detections. The version of Rails should always be specified by the parent project. This change has no functional impact.
11
+ * Update `json-jwt` to `>=1.13.0`
12
+
8
13
  ## [0.11.1] - 2019-11-27
9
14
 
10
15
  * When a token validation error occurs, do not log it as a `warn` (but as an `info` instead)
data/Dockerfile CHANGED
@@ -1,11 +1,14 @@
1
- FROM ruby:2.5.0
2
- RUN mkdir -p /usr/src/app/lib/keycloak-api-rails
1
+ FROM ruby:2.7.5-slim-bullseye
2
+
3
+ RUN apt-get update -qq && apt-get install -y build-essential git ruby-dev && apt-get clean && \
4
+ mkdir -p /usr/src/app/lib/keycloak-api-rails
5
+
3
6
  WORKDIR /usr/src/app
4
7
 
5
8
  COPY Gemfile /usr/src/app/
6
9
  COPY Gemfile.lock /usr/src/app/
7
10
  COPY keycloak-api-rails.gemspec /usr/src/app/
8
11
  COPY lib/keycloak-api-rails/version.rb /usr/src/app/lib/keycloak-api-rails/
9
- RUN bundle install
12
+ # RUN bundle install
10
13
  COPY . /usr/src/app
11
- RUN bundle install
14
+ # RUN bundle install
data/Gemfile.lock CHANGED
@@ -1,129 +1,156 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- keycloak-api-rails (0.11.1)
4
+ keycloak-api-rails (0.11.2)
5
5
  json-jwt (>= 1.11.0)
6
6
  rails (>= 4.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (6.0.1)
12
- actionpack (= 6.0.1)
11
+ actioncable (7.0.2.3)
12
+ actionpack (= 7.0.2.3)
13
+ activesupport (= 7.0.2.3)
13
14
  nio4r (~> 2.0)
14
15
  websocket-driver (>= 0.6.1)
15
- actionmailbox (6.0.1)
16
- actionpack (= 6.0.1)
17
- activejob (= 6.0.1)
18
- activerecord (= 6.0.1)
19
- activestorage (= 6.0.1)
20
- activesupport (= 6.0.1)
16
+ actionmailbox (7.0.2.3)
17
+ actionpack (= 7.0.2.3)
18
+ activejob (= 7.0.2.3)
19
+ activerecord (= 7.0.2.3)
20
+ activestorage (= 7.0.2.3)
21
+ activesupport (= 7.0.2.3)
21
22
  mail (>= 2.7.1)
22
- actionmailer (6.0.1)
23
- actionpack (= 6.0.1)
24
- actionview (= 6.0.1)
25
- activejob (= 6.0.1)
23
+ net-imap
24
+ net-pop
25
+ net-smtp
26
+ actionmailer (7.0.2.3)
27
+ actionpack (= 7.0.2.3)
28
+ actionview (= 7.0.2.3)
29
+ activejob (= 7.0.2.3)
30
+ activesupport (= 7.0.2.3)
26
31
  mail (~> 2.5, >= 2.5.4)
32
+ net-imap
33
+ net-pop
34
+ net-smtp
27
35
  rails-dom-testing (~> 2.0)
28
- actionpack (6.0.1)
29
- actionview (= 6.0.1)
30
- activesupport (= 6.0.1)
31
- rack (~> 2.0)
36
+ actionpack (7.0.2.3)
37
+ actionview (= 7.0.2.3)
38
+ activesupport (= 7.0.2.3)
39
+ rack (~> 2.0, >= 2.2.0)
32
40
  rack-test (>= 0.6.3)
33
41
  rails-dom-testing (~> 2.0)
34
42
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
35
- actiontext (6.0.1)
36
- actionpack (= 6.0.1)
37
- activerecord (= 6.0.1)
38
- activestorage (= 6.0.1)
39
- activesupport (= 6.0.1)
43
+ actiontext (7.0.2.3)
44
+ actionpack (= 7.0.2.3)
45
+ activerecord (= 7.0.2.3)
46
+ activestorage (= 7.0.2.3)
47
+ activesupport (= 7.0.2.3)
48
+ globalid (>= 0.6.0)
40
49
  nokogiri (>= 1.8.5)
41
- actionview (6.0.1)
42
- activesupport (= 6.0.1)
50
+ actionview (7.0.2.3)
51
+ activesupport (= 7.0.2.3)
43
52
  builder (~> 3.1)
44
53
  erubi (~> 1.4)
45
54
  rails-dom-testing (~> 2.0)
46
55
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
47
- activejob (6.0.1)
48
- activesupport (= 6.0.1)
56
+ activejob (7.0.2.3)
57
+ activesupport (= 7.0.2.3)
49
58
  globalid (>= 0.3.6)
50
- activemodel (6.0.1)
51
- activesupport (= 6.0.1)
52
- activerecord (6.0.1)
53
- activemodel (= 6.0.1)
54
- activesupport (= 6.0.1)
55
- activestorage (6.0.1)
56
- actionpack (= 6.0.1)
57
- activejob (= 6.0.1)
58
- activerecord (= 6.0.1)
59
- marcel (~> 0.3.1)
60
- activesupport (6.0.1)
59
+ activemodel (7.0.2.3)
60
+ activesupport (= 7.0.2.3)
61
+ activerecord (7.0.2.3)
62
+ activemodel (= 7.0.2.3)
63
+ activesupport (= 7.0.2.3)
64
+ activestorage (7.0.2.3)
65
+ actionpack (= 7.0.2.3)
66
+ activejob (= 7.0.2.3)
67
+ activerecord (= 7.0.2.3)
68
+ activesupport (= 7.0.2.3)
69
+ marcel (~> 1.0)
70
+ mini_mime (>= 1.1.0)
71
+ activesupport (7.0.2.3)
61
72
  concurrent-ruby (~> 1.0, >= 1.0.2)
62
- i18n (>= 0.7, < 2)
63
- minitest (~> 5.1)
64
- tzinfo (~> 1.1)
65
- zeitwerk (~> 2.2)
66
- aes_key_wrap (1.0.1)
67
- bindata (2.4.4)
68
- builder (3.2.3)
73
+ i18n (>= 1.6, < 2)
74
+ minitest (>= 5.1)
75
+ tzinfo (~> 2.0)
76
+ aes_key_wrap (1.1.0)
77
+ bindata (2.4.10)
78
+ builder (3.2.4)
69
79
  byebug (9.1.0)
70
- concurrent-ruby (1.1.5)
71
- crass (1.0.5)
72
- diff-lcs (1.3)
73
- erubi (1.9.0)
74
- globalid (0.4.2)
75
- activesupport (>= 4.2.0)
76
- i18n (1.7.0)
80
+ concurrent-ruby (1.1.10)
81
+ crass (1.0.6)
82
+ diff-lcs (1.5.0)
83
+ digest (3.1.0)
84
+ erubi (1.10.0)
85
+ globalid (1.0.0)
86
+ activesupport (>= 5.0)
87
+ i18n (1.10.0)
77
88
  concurrent-ruby (~> 1.0)
78
- json-jwt (1.11.0)
89
+ io-wait (0.2.1)
90
+ json-jwt (1.13.0)
79
91
  activesupport (>= 4.2)
80
92
  aes_key_wrap
81
93
  bindata
82
- loofah (2.4.0)
94
+ loofah (2.15.0)
83
95
  crass (~> 1.0.2)
84
96
  nokogiri (>= 1.5.9)
85
97
  mail (2.7.1)
86
98
  mini_mime (>= 0.1.1)
87
- marcel (0.3.3)
88
- mimemagic (~> 0.3.2)
89
- method_source (0.9.2)
90
- mimemagic (0.3.3)
91
- mini_mime (1.0.2)
92
- mini_portile2 (2.4.0)
93
- minitest (5.13.0)
94
- nio4r (2.5.2)
95
- nokogiri (1.10.5)
96
- mini_portile2 (~> 2.4.0)
97
- rack (2.0.7)
99
+ marcel (1.0.2)
100
+ method_source (1.0.0)
101
+ mini_mime (1.1.2)
102
+ mini_portile2 (2.8.0)
103
+ minitest (5.15.0)
104
+ net-imap (0.2.3)
105
+ digest
106
+ net-protocol
107
+ strscan
108
+ net-pop (0.1.1)
109
+ digest
110
+ net-protocol
111
+ timeout
112
+ net-protocol (0.1.2)
113
+ io-wait
114
+ timeout
115
+ net-smtp (0.3.1)
116
+ digest
117
+ net-protocol
118
+ timeout
119
+ nio4r (2.5.8)
120
+ nokogiri (1.13.3)
121
+ mini_portile2 (~> 2.8.0)
122
+ racc (~> 1.4)
123
+ racc (1.6.0)
124
+ rack (2.2.3)
98
125
  rack-test (1.1.0)
99
126
  rack (>= 1.0, < 3)
100
- rails (6.0.1)
101
- actioncable (= 6.0.1)
102
- actionmailbox (= 6.0.1)
103
- actionmailer (= 6.0.1)
104
- actionpack (= 6.0.1)
105
- actiontext (= 6.0.1)
106
- actionview (= 6.0.1)
107
- activejob (= 6.0.1)
108
- activemodel (= 6.0.1)
109
- activerecord (= 6.0.1)
110
- activestorage (= 6.0.1)
111
- activesupport (= 6.0.1)
112
- bundler (>= 1.3.0)
113
- railties (= 6.0.1)
114
- sprockets-rails (>= 2.0.0)
127
+ rails (7.0.2.3)
128
+ actioncable (= 7.0.2.3)
129
+ actionmailbox (= 7.0.2.3)
130
+ actionmailer (= 7.0.2.3)
131
+ actionpack (= 7.0.2.3)
132
+ actiontext (= 7.0.2.3)
133
+ actionview (= 7.0.2.3)
134
+ activejob (= 7.0.2.3)
135
+ activemodel (= 7.0.2.3)
136
+ activerecord (= 7.0.2.3)
137
+ activestorage (= 7.0.2.3)
138
+ activesupport (= 7.0.2.3)
139
+ bundler (>= 1.15.0)
140
+ railties (= 7.0.2.3)
115
141
  rails-dom-testing (2.0.3)
116
142
  activesupport (>= 4.2.0)
117
143
  nokogiri (>= 1.6)
118
- rails-html-sanitizer (1.3.0)
144
+ rails-html-sanitizer (1.4.2)
119
145
  loofah (~> 2.3)
120
- railties (6.0.1)
121
- actionpack (= 6.0.1)
122
- activesupport (= 6.0.1)
146
+ railties (7.0.2.3)
147
+ actionpack (= 7.0.2.3)
148
+ activesupport (= 7.0.2.3)
123
149
  method_source
124
- rake (>= 0.8.7)
125
- thor (>= 0.20.3, < 2.0)
126
- rake (13.0.1)
150
+ rake (>= 12.2)
151
+ thor (~> 1.0)
152
+ zeitwerk (~> 2.5)
153
+ rake (13.0.6)
127
154
  rspec (3.7.0)
128
155
  rspec-core (~> 3.7.0)
129
156
  rspec-expectations (~> 3.7.0)
@@ -136,23 +163,17 @@ GEM
136
163
  rspec-mocks (3.7.0)
137
164
  diff-lcs (>= 1.2.0, < 2.0)
138
165
  rspec-support (~> 3.7.0)
139
- rspec-support (3.7.0)
140
- sprockets (4.0.0)
141
- concurrent-ruby (~> 1.0)
142
- rack (> 1, < 3)
143
- sprockets-rails (3.2.1)
144
- actionpack (>= 4.0)
145
- activesupport (>= 4.0)
146
- sprockets (>= 3.0.0)
147
- thor (0.20.3)
148
- thread_safe (0.3.6)
166
+ rspec-support (3.7.1)
167
+ strscan (3.0.1)
168
+ thor (1.2.1)
149
169
  timecop (0.9.1)
150
- tzinfo (1.2.5)
151
- thread_safe (~> 0.1)
152
- websocket-driver (0.7.1)
170
+ timeout (0.2.0)
171
+ tzinfo (2.0.4)
172
+ concurrent-ruby (~> 1.0)
173
+ websocket-driver (0.7.5)
153
174
  websocket-extensions (>= 0.1.0)
154
- websocket-extensions (0.1.4)
155
- zeitwerk (2.2.1)
175
+ websocket-extensions (0.1.5)
176
+ zeitwerk (2.5.4)
156
177
 
157
178
  PLATFORMS
158
179
  ruby
@@ -164,4 +185,4 @@ DEPENDENCIES
164
185
  timecop (= 0.9.1)
165
186
 
166
187
  BUNDLED WITH
167
- 1.17.3
188
+ 2.1.4
data/README.md CHANGED
@@ -5,7 +5,7 @@ This gem aims at validates Keycloak JWT token in Ruby On Rails APIs.
5
5
  ## Install
6
6
 
7
7
  ```ruby
8
- gem "keycloak-api-rails", "0.11.1"
8
+ gem "keycloak-api-rails", "0.11.2"
9
9
  ```
10
10
 
11
11
  ## Token validation
@@ -1,3 +1,3 @@
1
1
  module Keycloak
2
- VERSION = "0.11.1"
2
+ VERSION = "0.11.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keycloak-api-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lorent Lempereur
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-27 00:00:00.000000000 Z
11
+ date: 2022-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -118,7 +118,7 @@ homepage: https://github.com/looorent/keycloak-api-rails
118
118
  licenses:
119
119
  - MIT
120
120
  metadata: {}
121
- post_install_message:
121
+ post_install_message:
122
122
  rdoc_options: []
123
123
  require_paths:
124
124
  - lib
@@ -133,8 +133,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  - !ruby/object:Gem::Version
134
134
  version: '0'
135
135
  requirements: []
136
- rubygems_version: 3.0.3
137
- signing_key:
136
+ rubygems_version: 3.2.3
137
+ signing_key:
138
138
  specification_version: 4
139
139
  summary: Rails middleware that validates Authorization token emitted by Keycloak
140
140
  test_files: []