keycloak 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/keycloak.rb +4 -0
- data/lib/keycloak.rb +6 -1
- data/lib/keycloak/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ff5b76f4726aa521fb0d9d6f18677172baffbc6632f72777e3363594be024bd
|
4
|
+
data.tar.gz: 06e31b93082fdba5e6d9d14427931a33618b67c126725a4b048ed4946b516e85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bf1bda56b5516906fe8525238e0d4642dbecd19aa99457546ce4e3e42912498bfcbc18f50c3a362512102abd30e41102e7696625675d2c7133445465dbb9f59
|
7
|
+
data.tar.gz: dbafe7bf07fe50efd3b3edd5cc537b1ab8d77f0c79c7dc325055b42680ab68186fd6828a7cc9349ff056d825b1906c0bb98995bcb0636e5aea8f8668588885a5
|
data/lib/generators/keycloak.rb
CHANGED
@@ -10,3 +10,7 @@ Keycloak.realm = ''
|
|
10
10
|
Keycloak.auth_server_url = ''
|
11
11
|
# The introspect of the token will be executed every time the Keycloak::Client.has_role? method is invoked, if this setting is set to true.
|
12
12
|
Keycloak.validate_token_when_call_has_role = false
|
13
|
+
# secret (only if the installation file is not present)
|
14
|
+
Keycloak.secret = ''
|
15
|
+
# resource (client_id, only if the installation file is not present)
|
16
|
+
Keycloak.resource = ''
|
data/lib/keycloak.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'keycloak/version'
|
2
4
|
require 'rest-client'
|
3
5
|
require 'json'
|
@@ -16,7 +18,8 @@ module Keycloak
|
|
16
18
|
class << self
|
17
19
|
attr_accessor :proxy, :generate_request_exception, :keycloak_controller,
|
18
20
|
:proc_cookie_token, :proc_external_attributes,
|
19
|
-
:realm, :auth_server_url, :validate_token_when_call_has_role
|
21
|
+
:realm, :auth_server_url, :validate_token_when_call_has_role,
|
22
|
+
:secret, :resource
|
20
23
|
end
|
21
24
|
|
22
25
|
def self.explode_exception
|
@@ -345,6 +348,8 @@ module Keycloak
|
|
345
348
|
|
346
349
|
@realm = Keycloak.realm
|
347
350
|
@auth_server_url = Keycloak.auth_server_url
|
351
|
+
@client_id = Keycloak.resource
|
352
|
+
@secret = Keycloak.secret
|
348
353
|
end
|
349
354
|
openid_configuration
|
350
355
|
end
|
data/lib/keycloak/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keycloak
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guilherme Portugues
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|