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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31c0cf08f09237855b198e4128d3e8b6419d3a404fafd413c2043015a6d7a4c9
4
- data.tar.gz: f2265af7c22257d307b1bfe6bea0fca0db01dc5d8ecb6dd9a0374685c75821a8
3
+ metadata.gz: 1ff5b76f4726aa521fb0d9d6f18677172baffbc6632f72777e3363594be024bd
4
+ data.tar.gz: 06e31b93082fdba5e6d9d14427931a33618b67c126725a4b048ed4946b516e85
5
5
  SHA512:
6
- metadata.gz: b341ebe39b5cf767604c7b673300b1b14a27dac0f34d15c5afa7edf99d705d7cf3c3970345de2d9dbb4a4093ee1282b101a57840a0273e02386b9d317fb14510
7
- data.tar.gz: cab5a14532198339f832690908a44dacea2072765603f770bfe103e07680e051a717438266616edda967b1902bd17ca271690536a0faa9459051b6af3c079733
6
+ metadata.gz: 4bf1bda56b5516906fe8525238e0d4642dbecd19aa99457546ce4e3e42912498bfcbc18f50c3a362512102abd30e41102e7696625675d2c7133445465dbb9f59
7
+ data.tar.gz: dbafe7bf07fe50efd3b3edd5cc537b1ab8d77f0c79c7dc325055b42680ab68186fd6828a7cc9349ff056d825b1906c0bb98995bcb0636e5aea8f8668588885a5
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Keycloak
2
- VERSION = '3.1.0'.freeze
2
+ VERSION = '3.2.0'.freeze
3
3
  end
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.1.0
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-02-26 00:00:00.000000000 Z
11
+ date: 2020-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler