keycloak 2.2.0 → 2.2.1

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
  SHA1:
3
- metadata.gz: 9a4572bcffa6438c4d2cdabf47e45ec0cf510800
4
- data.tar.gz: 84a19a7ea5c489bd0677ad651814f2ef559e0e07
3
+ metadata.gz: d5c9d602c2e3293471963d545dbee24cc6fd3809
4
+ data.tar.gz: c1dfa2841bf345cb4b779d200ce665484ea410a9
5
5
  SHA512:
6
- metadata.gz: b9461cc31a94c2b3962b3a627ba6b991d3eb1df4b1cac9275e229747ab4a6f10149ae4b3b12c528739d1444fe756016be37e5f230973f442b65f803e98bfa971
7
- data.tar.gz: 3349d5e9f62b4941516966b3f4910a114ccb7db0e8cd850ea06397bb643c157b30846a3f496dcab5ffec60a863b56d9aff3db6a89247555b0ec96b631849336c
6
+ metadata.gz: '055529d1d998ccaf4923eb9d95e37f2253bc3248702dc3cb1094f917bfd1e85ff7ff7fcac97e853e3415129e3d186cd8852106a6a41fd61245ef899d0c5af19e'
7
+ data.tar.gz: 63af48c60747368bfbeab593e4636c2f407bf038464db76d623a24112a026538f8a9ddca666eb54ae45cca89ab96b3b645a8cd80068593af27ccd116fa296240
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # Keycloak
2
+ A gem Keycloak foi desenvolvida para integrar aplicações e serviços ao sistema [Keycloak](http://www.keycloak.org/) da [Red Hat](https://www.redhat.com) para controle de usuários, autenticação, autorização e sessão.
2
3
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/keycloak`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
4
+ O seu desenvolvimento foi baseado na versão 3.2 do Keycloak, cuja documentação pode ser encontrada [aqui](http://www.keycloak.org/archive/documentation-3.2.html).
6
5
 
7
6
  ## Installation
8
7
 
@@ -23,21 +22,3 @@ Or install it yourself as:
23
22
  ## Usage
24
23
 
25
24
  TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/keycloak. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
-
37
- ## License
38
-
39
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
40
-
41
- ## Code of Conduct
42
-
43
- Everyone interacting in the Keycloak project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/keycloak/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,6 @@
1
+ # Set proxy to connect in keycloak server
2
+ Keycloak.proxy = ''
3
+ # If true, then all request exception will explode in application (this is the default value)
4
+ Keycloak.generate_request_exception = true
5
+ # controller that manage the user session
6
+ Keycloak.keycloak_controller = 'session'
data/lib/keycloak.rb CHANGED
@@ -64,11 +64,14 @@ module Keycloak
64
64
  mount_request_token(payload)
65
65
  end
66
66
 
67
- def self.get_token_by_client_credentials
67
+ def self.get_token_by_client_credentials(client_id = '', secret = '')
68
68
  setup_module
69
69
 
70
- payload = { 'client_id' => @client_id,
71
- 'client_secret' => @secret,
70
+ client_id = @client_id if client_id.empty?
71
+ secret = @secret if secret.empty?
72
+
73
+ payload = { 'client_id' => client_id,
74
+ 'client_secret' => secret,
72
75
  'grant_type' => 'client_credentials' }
73
76
 
74
77
  mount_request_token(payload)
@@ -1,3 +1,3 @@
1
1
  module Keycloak
2
- VERSION = "2.2.0"
2
+ VERSION = "2.2.1"
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: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Portugues
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-31 00:00:00.000000000 Z
11
+ date: 2017-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -113,6 +113,7 @@ files:
113
113
  - bin/setup
114
114
  - keycloak.gemspec
115
115
  - lib/generators/initializer_generator.rb
116
+ - lib/generators/keycloak.rb
116
117
  - lib/keycloak.rb
117
118
  - lib/keycloak/exceptions.rb
118
119
  - lib/keycloak/version.rb