hydra-keycloak-client 0.1.4 → 0.1.5

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: 6aeae2261cdd736e31e48d59e3d97f8a26e2e88b4b4793cad7377aed52e8de1c
4
- data.tar.gz: 29e84ab96e9f07e92dcfc150008ea627c843294e298e4f354884336ed903444d
3
+ metadata.gz: c1c2501b9655a228734d10a9d4c1faad122811861727dc8aa66e10b4219e9a12
4
+ data.tar.gz: 3c86bc796eb4377e4a5defcfb75b908ada14386f10386abe745c2472959137c5
5
5
  SHA512:
6
- metadata.gz: a2fd68301e498dc7f69cc7193d177d3a025f8cf334af3f2b2bcea75f4d0bfa37c87511fc7e3eee5d1c19cc8138ff32bbf00f6f85fa2e94762e8f81d58f4694db
7
- data.tar.gz: 59948ba16738ba3eb18968220d90faa81eeeb3a80bc1aac07fc6f0624cd519af76d198eaa1d160b0693d3bfb39d23789ef0e5c1fc3e3e91789f63f5edf2ad7f2
6
+ metadata.gz: eb1200c121405ff86550a47bbf646b15f658e9a95125ad54317768f58b2d05604a97d6c24939d5817fed75c7551fac59f47b1934a7d579092f99cdb8cac6fdde
7
+ data.tar.gz: 02ec5a5fc49112fb2f2dc9e09b8828e47cf69e9d23628d3dacae0ea0dfbfcd284be162a42e86bd3cecb5290c42241df616a88607d05c86afbcf1ce7886e0d118
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hydra-keycloak-client (0.1.0)
4
+ hydra-keycloak-client (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -16,6 +16,17 @@ module Hydra
16
16
  extend ::Hydra::Keycloak::Mixin
17
17
 
18
18
  def self.call(config:)
19
+ memcached_schema = Dry::Schema.JSON do
20
+ required(:memcached_host).filled(:string)
21
+ required(:memcached_port).filled(:string)
22
+ required(:memcached_namespace).filled(:string)
23
+ end
24
+
25
+ redis_schema = Dry::Schema.JSON do
26
+ required(:redis_host).filled(:string)
27
+ required(:redis_port).filled(:string)
28
+ end
29
+
19
30
  config_schema = Dry::Schema.JSON do
20
31
  required(:auth_server_url).filled(:string)
21
32
  required(:realm).filled(:string)
@@ -24,17 +35,7 @@ module Hydra
24
35
  required(:secret).filled(:string)
25
36
  required(:logout_redirect).filled(:string)
26
37
  required(:store_client).value(included_in?: ['redis', 'memcached'])
27
-
28
- optional(:memcached).hash do
29
- required(:memcached_host).filled(:string)
30
- required(:memcached_port).filled(:string)
31
- required(:memcached_namespace).filled(:string)
32
- end
33
-
34
- optional(:redis).hash do
35
- required(:redis_host).filled(:string)
36
- required(:redis_port).filled(:string)
37
- end
38
+ required(:store_client_options).hash(memcached_schema | redis_schema)
38
39
  end
39
40
 
40
41
  validated_config = config_schema.call(config)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Hydra
4
4
  module Keycloak
5
- VERSION = '0.1.4'
5
+ VERSION = '0.1.5'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-keycloak-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fedor Kosolapov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-08 00:00:00.000000000 Z
11
+ date: 2022-02-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Keycloak client for SSO
14
14
  email:
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  requirements: []
63
- rubygems_version: 3.2.3
63
+ rubygems_version: 3.1.6
64
64
  signing_key:
65
65
  specification_version: 4
66
66
  summary: Keycloak client for SSO