keycloak-admin 1.0.14 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0996222c55cc2f5c2903da1159fb9704b8c35526e371bb612081f487c3477cc2'
4
- data.tar.gz: caad9e846f5cfeb84f13e0866d38a2cb13834d09414e19b253a6251daf166e47
3
+ metadata.gz: f30a381496a82b5ca155376eadeaa9a2d100d7843b015adbb2a6eaa575547613
4
+ data.tar.gz: 28b7325e840da41621f9d3a40338db19aef80afd626b5048057f551b3ab7034d
5
5
  SHA512:
6
- metadata.gz: 82f7774399adf4460d09136d488b114fedf21f6e6b09efa3780efb8ed09c01252ca1b43d8e146ad8c7bd72a26c746fb7553e10fe0d6447689239f6e9581cb214
7
- data.tar.gz: baeecc5e4b673b76b2cc548d018576f26b3d8fab3398849d3c1f2e4acdeeaab1d00ecb33defdbec8257f98ecf8519ae96ce8c05bcc414df75fb500bb59eb6d16
6
+ metadata.gz: 74d5c91da160b07d00476f46fccd69e51a060bcf3d8a9b47bdb224dda3a6d2b5170684c426c8fecd0d3af7d7dc5fb12aeb4c9bd08632670b65d32d9be5bf5e12
7
+ data.tar.gz: 869e1a226ff33650e8fd5232fcd141b26e6478805df03dbf5fc11e43189be48d4aaafa88e2c5d29934b781365d5539947b734ddf301fa0c31fa5820732ef854a
data/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.16] - 2022-10-15
9
+
10
+ * Remove `rest-client` warning when adding a group (thanks to @tlloydthwaites)
11
+
12
+ ## [1.0.15] - 2022-05-23
13
+
14
+ * Delete all "realm" roles mapped to a user
15
+
8
16
  ## [1.0.14] - 2022-03-30
9
17
 
10
18
  * Update `Gemfile.lock` to avoid wrong CVE detections. The version of Rails should always be specified by the parent project. This change has no functional impact.
data/Dockerfile CHANGED
@@ -8,6 +8,6 @@ COPY Gemfile /usr/src/app/
8
8
  COPY Gemfile.lock /usr/src/app/
9
9
  COPY keycloak-admin.gemspec /usr/src/app/
10
10
  COPY lib/keycloak-admin/version.rb /usr/src/app/lib/keycloak-admin/
11
- # RUN bundle install
11
+ RUN bundle install
12
12
  COPY . /usr/src/app
13
- # RUN bundle install
13
+ RUN bundle install
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- keycloak-admin (1.0.14)
4
+ keycloak-admin (1.0.16)
5
5
  http-cookie (~> 1.0, >= 1.0.3)
6
6
  rest-client (~> 2.1)
7
7
 
@@ -13,7 +13,7 @@ GEM
13
13
  domain_name (0.5.20190701)
14
14
  unf (>= 0.0.5, < 1.0.0)
15
15
  http-accept (1.7.0)
16
- http-cookie (1.0.4)
16
+ http-cookie (1.0.5)
17
17
  domain_name (~> 0.5)
18
18
  mime-types (3.4.1)
19
19
  mime-types-data (~> 3.2015)
@@ -39,7 +39,7 @@ GEM
39
39
  rspec-support (3.7.1)
40
40
  unf (0.1.4)
41
41
  unf_ext
42
- unf_ext (0.0.8.1)
42
+ unf_ext (0.0.8.2)
43
43
 
44
44
  PLATFORMS
45
45
  ruby
data/README.md CHANGED
@@ -12,7 +12,7 @@ This gem *does not* require Rails.
12
12
  For example, using `bundle`, add this line to your Gemfile.
13
13
 
14
14
  ```ruby
15
- gem "keycloak-admin", "1.0.14"
15
+ gem "keycloak-admin", "1.0.16"
16
16
  ```
17
17
 
18
18
  ## Login
@@ -13,6 +13,13 @@ module KeycloakAdmin
13
13
  end
14
14
  end
15
15
 
16
+ def remove_all_realm_roles
17
+ execute_http do
18
+ RestClient::Resource.new(realm_level_url, @configuration.rest_client_options).delete(headers)
19
+ end
20
+ true
21
+ end
22
+
16
23
  def realm_level_url
17
24
  "#{@user_resource.resource_url}/role-mappings/realm"
18
25
  end
@@ -36,7 +36,7 @@ module KeycloakAdmin
36
36
  @configuration.rest_client_options.merge(
37
37
  method: :put,
38
38
  url: "#{users_url(user_id)}/groups/#{group_id}",
39
- payload: {},
39
+ payload: create_payload({}),
40
40
  headers: headers
41
41
  )
42
42
  )
@@ -1,3 +1,3 @@
1
1
  module KeycloakAdmin
2
- VERSION = "1.0.14"
2
+ VERSION = "1.0.16"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keycloak-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.14
4
+ version: 1.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lorent Lempereur
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-30 00:00:00.000000000 Z
11
+ date: 2022-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http-cookie