dina 1.3.4.0 → 1.3.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dina/authentication/authentication.rb +1 -1
- data/lib/dina/rest_client_request_patch.rb +3 -4
- data/lib/dina/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6728c019ebcabfe2b5cc44ed86e21b554abb35610a827244327c36b44da848c3
|
4
|
+
data.tar.gz: 296327cca607a8933f2019a7909e150e7a1fdcfa61974eb9b0e7780a94cbb1e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53df12106db16f66b010495187fe52260fb77657177837bf43d0b355908d1691cfd4a62fa7cd29e5770312e228007bbb03e7d5c3ed1b2dfffb83f23d5431c734
|
7
|
+
data.tar.gz: 1ac375737f4c259807519964f81a27dab6989850d239761136df018c14ab866056a692e7dda74d4c55085e84184886384afb510e8742c3003938656adf847d10
|
@@ -52,7 +52,7 @@ module Dina
|
|
52
52
|
Keycloak.auth_server_url = config.authorization_url
|
53
53
|
Keycloak.realm = config.realm
|
54
54
|
|
55
|
-
if opts
|
55
|
+
if opts.key?(:verify_ssl) && opts[:verify_ssl] == false
|
56
56
|
Dina::BaseModel.connection_options[:ssl] = { verify: false }
|
57
57
|
end
|
58
58
|
|
@@ -1,13 +1,12 @@
|
|
1
|
-
# Keycloak Client depends on RestClient & so verifying SSL must be
|
1
|
+
# Keycloak Client depends on RestClient & so verifying SSL must be accommodated here
|
2
|
+
# Not a great solution, ideally should be initialized prior to calling Keycloak::Client.get_token
|
2
3
|
|
3
4
|
module RestClient
|
4
5
|
class Request
|
5
6
|
orig_initialize = instance_method(:initialize)
|
6
7
|
|
7
8
|
define_method(:initialize) do |args|
|
8
|
-
|
9
|
-
args[:verify_ssl] = false
|
10
|
-
end
|
9
|
+
args[:verify_ssl] = false
|
11
10
|
orig_initialize.bind(self).(args)
|
12
11
|
end
|
13
12
|
end
|
data/lib/dina/version.rb
CHANGED