keycloak-admin 1.0.14 → 1.0.15

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: 045fe9f1da5f6db7c4c4fdf81292c622af6bf30150f0067f0c16266d73cd2aad
4
+ data.tar.gz: 9124de4d0394b9a657365c622ee6a1142b060e22bf0730ce26cdeea3a9dba1d3
5
5
  SHA512:
6
- metadata.gz: 82f7774399adf4460d09136d488b114fedf21f6e6b09efa3780efb8ed09c01252ca1b43d8e146ad8c7bd72a26c746fb7553e10fe0d6447689239f6e9581cb214
7
- data.tar.gz: baeecc5e4b673b76b2cc548d018576f26b3d8fab3398849d3c1f2e4acdeeaab1d00ecb33defdbec8257f98ecf8519ae96ce8c05bcc414df75fb500bb59eb6d16
6
+ metadata.gz: aab469430cbf4c63028dfe6d0ea0ddb1a809b88c285b43a2449a3b14f8667147b210590fcb28783fe228fa5b12a6326389354e35a102b1438f155461b7e048da
7
+ data.tar.gz: 4072fcb6f9cfa4c7cd169bd78534eb774e1644a58690341ea5fa9abcf1003245d93a732bab1d32ced9b193f8765acb3f9fbb321943a40d41a0362a76a19057f5
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ 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.15] - 2022-05-23
9
+
10
+ * Delete all "realm" roles mapped to a user
11
+
8
12
  ## [1.0.14] - 2022-03-30
9
13
 
10
14
  * 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.15)
5
5
  http-cookie (~> 1.0, >= 1.0.3)
6
6
  rest-client (~> 2.1)
7
7
 
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.15"
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
@@ -1,3 +1,3 @@
1
1
  module KeycloakAdmin
2
- VERSION = "1.0.14"
2
+ VERSION = "1.0.15"
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.15
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-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http-cookie