keycloak-api-rails 0.10 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +61 -45
- data/README.md +5 -1
- data/keycloak-api-rails.gemspec +4 -2
- data/lib/keycloak-api-rails/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87874dec1c650142ab5ab797da0242c54307a27f
|
4
|
+
data.tar.gz: 261fe67cecc45c6fd9831b15289d242e697ee354
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2eecc8d1fb2e293f265712b90d44b012b68b319a22739906a39fc03e4c159d6780793dd1a2210b0e510d175bf86df6c414ddaa9c7bd360250b2a101f275548bd
|
7
|
+
data.tar.gz: 96aa59b4a9d1617f946d827660bed9e7f97b6326ac02d91e00805d2ac989de33af5bb53f7ee92e0c598a81dc8e1800b63966c872b553180f07a8164f2c665803
|
data/Gemfile.lock
CHANGED
@@ -1,50 +1,51 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
keycloak-api-rails (0.
|
5
|
-
json-jwt (
|
4
|
+
keycloak-api-rails (0.10.2)
|
5
|
+
json-jwt (>= 1.9.4)
|
6
6
|
rails (>= 4.2)
|
7
|
+
rest-client (>= 2.0.2)
|
7
8
|
|
8
9
|
GEM
|
9
10
|
remote: https://rubygems.org/
|
10
11
|
specs:
|
11
|
-
actioncable (5.2.
|
12
|
-
actionpack (= 5.2.
|
12
|
+
actioncable (5.2.1)
|
13
|
+
actionpack (= 5.2.1)
|
13
14
|
nio4r (~> 2.0)
|
14
15
|
websocket-driver (>= 0.6.1)
|
15
|
-
actionmailer (5.2.
|
16
|
-
actionpack (= 5.2.
|
17
|
-
actionview (= 5.2.
|
18
|
-
activejob (= 5.2.
|
16
|
+
actionmailer (5.2.1)
|
17
|
+
actionpack (= 5.2.1)
|
18
|
+
actionview (= 5.2.1)
|
19
|
+
activejob (= 5.2.1)
|
19
20
|
mail (~> 2.5, >= 2.5.4)
|
20
21
|
rails-dom-testing (~> 2.0)
|
21
|
-
actionpack (5.2.
|
22
|
-
actionview (= 5.2.
|
23
|
-
activesupport (= 5.2.
|
22
|
+
actionpack (5.2.1)
|
23
|
+
actionview (= 5.2.1)
|
24
|
+
activesupport (= 5.2.1)
|
24
25
|
rack (~> 2.0)
|
25
26
|
rack-test (>= 0.6.3)
|
26
27
|
rails-dom-testing (~> 2.0)
|
27
28
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
28
|
-
actionview (5.2.
|
29
|
-
activesupport (= 5.2.
|
29
|
+
actionview (5.2.1)
|
30
|
+
activesupport (= 5.2.1)
|
30
31
|
builder (~> 3.1)
|
31
32
|
erubi (~> 1.4)
|
32
33
|
rails-dom-testing (~> 2.0)
|
33
34
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
34
|
-
activejob (5.2.
|
35
|
-
activesupport (= 5.2.
|
35
|
+
activejob (5.2.1)
|
36
|
+
activesupport (= 5.2.1)
|
36
37
|
globalid (>= 0.3.6)
|
37
|
-
activemodel (5.2.
|
38
|
-
activesupport (= 5.2.
|
39
|
-
activerecord (5.2.
|
40
|
-
activemodel (= 5.2.
|
41
|
-
activesupport (= 5.2.
|
38
|
+
activemodel (5.2.1)
|
39
|
+
activesupport (= 5.2.1)
|
40
|
+
activerecord (5.2.1)
|
41
|
+
activemodel (= 5.2.1)
|
42
|
+
activesupport (= 5.2.1)
|
42
43
|
arel (>= 9.0)
|
43
|
-
activestorage (5.2.
|
44
|
-
actionpack (= 5.2.
|
45
|
-
activerecord (= 5.2.
|
44
|
+
activestorage (5.2.1)
|
45
|
+
actionpack (= 5.2.1)
|
46
|
+
activerecord (= 5.2.1)
|
46
47
|
marcel (~> 0.3.1)
|
47
|
-
activesupport (5.2.
|
48
|
+
activesupport (5.2.1)
|
48
49
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
49
50
|
i18n (>= 0.7, < 2)
|
50
51
|
minitest (~> 5.1)
|
@@ -57,10 +58,14 @@ GEM
|
|
57
58
|
concurrent-ruby (1.0.5)
|
58
59
|
crass (1.0.4)
|
59
60
|
diff-lcs (1.3)
|
61
|
+
domain_name (0.5.20180417)
|
62
|
+
unf (>= 0.0.5, < 1.0.0)
|
60
63
|
erubi (1.7.1)
|
61
64
|
globalid (0.4.1)
|
62
65
|
activesupport (>= 4.2.0)
|
63
|
-
|
66
|
+
http-cookie (1.0.3)
|
67
|
+
domain_name (~> 0.5)
|
68
|
+
i18n (1.1.0)
|
64
69
|
concurrent-ruby (~> 1.0)
|
65
70
|
json-jwt (1.9.4)
|
66
71
|
activesupport
|
@@ -74,41 +79,49 @@ GEM
|
|
74
79
|
marcel (0.3.2)
|
75
80
|
mimemagic (~> 0.3.2)
|
76
81
|
method_source (0.9.0)
|
82
|
+
mime-types (3.2.2)
|
83
|
+
mime-types-data (~> 3.2015)
|
84
|
+
mime-types-data (3.2018.0812)
|
77
85
|
mimemagic (0.3.2)
|
78
|
-
mini_mime (1.0.
|
86
|
+
mini_mime (1.0.1)
|
79
87
|
mini_portile2 (2.3.0)
|
80
88
|
minitest (5.11.3)
|
89
|
+
netrc (0.11.0)
|
81
90
|
nio4r (2.3.1)
|
82
|
-
nokogiri (1.8.
|
91
|
+
nokogiri (1.8.4)
|
83
92
|
mini_portile2 (~> 2.3.0)
|
84
|
-
rack (2.0.
|
85
|
-
rack-test (1.
|
93
|
+
rack (2.0.6)
|
94
|
+
rack-test (1.1.0)
|
86
95
|
rack (>= 1.0, < 3)
|
87
|
-
rails (5.2.
|
88
|
-
actioncable (= 5.2.
|
89
|
-
actionmailer (= 5.2.
|
90
|
-
actionpack (= 5.2.
|
91
|
-
actionview (= 5.2.
|
92
|
-
activejob (= 5.2.
|
93
|
-
activemodel (= 5.2.
|
94
|
-
activerecord (= 5.2.
|
95
|
-
activestorage (= 5.2.
|
96
|
-
activesupport (= 5.2.
|
96
|
+
rails (5.2.1)
|
97
|
+
actioncable (= 5.2.1)
|
98
|
+
actionmailer (= 5.2.1)
|
99
|
+
actionpack (= 5.2.1)
|
100
|
+
actionview (= 5.2.1)
|
101
|
+
activejob (= 5.2.1)
|
102
|
+
activemodel (= 5.2.1)
|
103
|
+
activerecord (= 5.2.1)
|
104
|
+
activestorage (= 5.2.1)
|
105
|
+
activesupport (= 5.2.1)
|
97
106
|
bundler (>= 1.3.0)
|
98
|
-
railties (= 5.2.
|
107
|
+
railties (= 5.2.1)
|
99
108
|
sprockets-rails (>= 2.0.0)
|
100
109
|
rails-dom-testing (2.0.3)
|
101
110
|
activesupport (>= 4.2.0)
|
102
111
|
nokogiri (>= 1.6)
|
103
112
|
rails-html-sanitizer (1.0.4)
|
104
113
|
loofah (~> 2.2, >= 2.2.2)
|
105
|
-
railties (5.2.
|
106
|
-
actionpack (= 5.2.
|
107
|
-
activesupport (= 5.2.
|
114
|
+
railties (5.2.1)
|
115
|
+
actionpack (= 5.2.1)
|
116
|
+
activesupport (= 5.2.1)
|
108
117
|
method_source
|
109
118
|
rake (>= 0.8.7)
|
110
|
-
thor (>= 0.
|
119
|
+
thor (>= 0.19.0, < 2.0)
|
111
120
|
rake (12.3.1)
|
121
|
+
rest-client (2.0.2)
|
122
|
+
http-cookie (>= 1.0.2, < 2.0)
|
123
|
+
mime-types (>= 1.16, < 4.0)
|
124
|
+
netrc (~> 0.8)
|
112
125
|
rspec (3.7.0)
|
113
126
|
rspec-core (~> 3.7.0)
|
114
127
|
rspec-expectations (~> 3.7.0)
|
@@ -122,7 +135,7 @@ GEM
|
|
122
135
|
diff-lcs (>= 1.2.0, < 2.0)
|
123
136
|
rspec-support (~> 3.7.0)
|
124
137
|
rspec-support (3.7.0)
|
125
|
-
sprockets (3.7.
|
138
|
+
sprockets (3.7.2)
|
126
139
|
concurrent-ruby (~> 1.0)
|
127
140
|
rack (> 1, < 3)
|
128
141
|
sprockets-rails (3.2.1)
|
@@ -134,6 +147,9 @@ GEM
|
|
134
147
|
timecop (0.9.1)
|
135
148
|
tzinfo (1.2.5)
|
136
149
|
thread_safe (~> 0.1)
|
150
|
+
unf (0.1.4)
|
151
|
+
unf_ext
|
152
|
+
unf_ext (0.0.7.5)
|
137
153
|
websocket-driver (0.7.0)
|
138
154
|
websocket-extensions (>= 0.1.0)
|
139
155
|
websocket-extensions (0.1.3)
|
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.10"
|
8
|
+
gem "keycloak-api-rails", "0.10.2"
|
9
9
|
```
|
10
10
|
|
11
11
|
## Token validation
|
@@ -170,3 +170,7 @@ From the `keycloak-rails-api` directory:
|
|
170
170
|
$ docker build . -t keycloak-rails-api:test
|
171
171
|
$ docker run -v `pwd`:/usr/src/app/ keycloak-rails-api:test bundle exec rspec spec
|
172
172
|
```
|
173
|
+
|
174
|
+
## Next developments
|
175
|
+
|
176
|
+
* Remove dependency to `rest-client`
|
data/keycloak-api-rails.gemspec
CHANGED
@@ -15,8 +15,10 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0")
|
16
16
|
spec.require_paths = ["lib"]
|
17
17
|
|
18
|
-
spec.add_dependency "rails",
|
19
|
-
spec.add_dependency "json-jwt",
|
18
|
+
spec.add_dependency "rails", ">= 4.2"
|
19
|
+
spec.add_dependency "json-jwt", ">= 1.9.4"
|
20
|
+
spec.add_dependency "rest-client", ">= 2.0.2"
|
21
|
+
|
20
22
|
spec.add_development_dependency "rspec", "3.7.0"
|
21
23
|
spec.add_development_dependency "timecop", "0.9.1"
|
22
24
|
spec.add_development_dependency "byebug", "9.1.0"
|
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:
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lorent Lempereur
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.9.4
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rest-client
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.0.2
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.0.2
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rspec
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|