keycloak-ruby-client 0.0.19 → 0.0.20

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: a21f53bd4b432715baed464f6a40ac5133c9b272
4
- data.tar.gz: 473bcc4c2965d6cd0c4355fc74a8c336c7d48457
3
+ metadata.gz: '086dfbaf42ef3339dd5860e717be6490f625baa3'
4
+ data.tar.gz: c32725910ba174a2722839bf913b4c2d69f9785d
5
5
  SHA512:
6
- metadata.gz: 10f49dc6b19beb1f516963252159e7250f5d3362bb4e4613646e8e57f9a753d288ef2f303535cb28bd7d3d3dec756988f7669b82db1dafd25fc131ae65daa72f
7
- data.tar.gz: a2e7c8b5ec06e0564f0ef59cd7cd53d18ca0cad799a8ed624c733cb1b6e17f4ab294904eaa69561497e69db6c3f2d16751bc32dc512b231fe33e2cd51340f1b6
6
+ metadata.gz: ff0f354f26cbfce2d3ef617abe6d56e0a62c5acc99d5a254a52a95cd70ad72e64de0c34fd82fc236863bb1c0ea3732ed979d9cd8b4a2ab7e690cc6c12c5cfe06
7
+ data.tar.gz: 373f5165819f01ae672d30e87e378f3dacdc98bdfe2db63c814885b3f6ede60d6778ecfd3dad75405fe648de1dbde94e360912780914b4da2b39a0cf92c43e4d
@@ -39,6 +39,8 @@ Gem::Specification.new do |spec|
39
39
  spec.add_dependency "rails", ">= 4.0"
40
40
  spec.add_dependency "rest-client", "~> 2.0"
41
41
  spec.add_dependency "concurrent-ruby", "~> 1.0"
42
+ spec.add_dependency "jwt"
43
+ spec.add_dependency "json-jwt"
42
44
 
43
45
  spec.add_development_dependency "bundler", "~> 2.0"
44
46
  spec.add_development_dependency "rake", "~> 10.0"
@@ -69,6 +69,11 @@ module Keycloak
69
69
  JSON.parse(get(url, params: params)).map { |user| Model::UserRepresentation.new(user) }
70
70
  end
71
71
  end
72
+
73
+ # @param id [String] user id
74
+ def delete_user(id)
75
+ delete("#{user_resources_url}/#{id}", headers: {content_type: :json})
76
+ end
72
77
  end
73
78
  end
74
79
  end
@@ -1,3 +1,6 @@
1
+ require 'jwt'
2
+ require 'json-jwt'
3
+
1
4
  module Keycloak
2
5
  class Realm
3
6
  @realms = Concurrent::Map.new
@@ -1,3 +1,3 @@
1
1
  module Keycloak
2
- VERSION = "0.0.19"
2
+ VERSION = "0.0.20"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keycloak-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fuxin Hao
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-02 00:00:00.000000000 Z
11
+ date: 2020-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,6 +52,34 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: jwt
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: json-jwt
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: bundler
57
85
  requirement: !ruby/object:Gem::Requirement
@@ -191,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
219
  version: '0'
192
220
  requirements: []
193
221
  rubyforge_project:
194
- rubygems_version: 2.6.11
222
+ rubygems_version: 2.6.14.3
195
223
  signing_key:
196
224
  specification_version: 4
197
225
  summary: Keycloak ruby client