keycloak-admin 1.1.3 → 1.1.5

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: be47369f8365b8b32ff4ca3b09ebad45f5037212eca3022524b10ba17b0f64d6
4
- data.tar.gz: 36a340f437ecb97ce5c415e752d5e1159ebbc5911d454f643985de541c6deaf3
3
+ metadata.gz: dc70b33efe8f4293f7eb0f60eeb30f9468d7866a08e20180b6a3b66c35c96ea8
4
+ data.tar.gz: f9cfd0bec183db13053ecd034c4c0c180a8564c116fdb6ace4271a086622f18b
5
5
  SHA512:
6
- metadata.gz: 6bd85e4709a0044168b7c3b3e9e2d89b1fab559070d4a318d65283db2046716439c4d1d0a534ba3cc9b1cbc89771626945877a76723bd03cc5f0e6dbebe6b266
7
- data.tar.gz: e4b2286bac6d7e11192a1f3b6a569170849275bd3fa91aa104cdf521139a691396c8681a4152b5611e6a28e6c1457f60329b39ebca44cc4eb328f9ade9f7f605
6
+ metadata.gz: a3a4bf1e49ea91c845458186565f68636244e515a7ad78d12e69c50ad190de94fd38050a3222ed16eb33f0b5a13d5e1aa65e496ebb48fb732a5248ff6c227953
7
+ data.tar.gz: b60ee39f400e84c57f1627042abbb07b0ca820471d3fe53448c09a2ef8b4cc1acb193ea4f11d63d4b60941f0ee9496ecb6a5fc89bc6007fa1c1eca69a5b37925
@@ -70,10 +70,7 @@ jobs:
70
70
 
71
71
  - uses: actions/checkout@v4
72
72
  - name: Set up Ruby
73
- # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
74
- # change this to (see https://github.com/ruby/setup-ruby#versioning):
75
- # uses: ruby/setup-ruby@v1
76
- uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
73
+ uses: ruby/setup-ruby@v1
77
74
  with:
78
75
  ruby-version: ${{ matrix.ruby-version }}
79
76
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
data/CHANGELOG.md CHANGED
@@ -1,189 +1,201 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [1.1.3] - 2024-07-12
9
-
10
- * Client Authorization management support (thanks to @tillawy)
11
- * GitHub-actions setup to execute `rspec` (thanks to @tillawy)
12
-
13
- ## [1.1.2] - 2024-05-22
14
-
15
- * Add group endpoints (get, children, delete), support for group attributes (thanks to @mkrawc)
16
- * GroupClient#save method now can update an existing group (thanks to @mkrawc)
17
- * RoleClient#save method now can update an existing role (thanks to @mkrawc)
18
-
19
- ## [1.1.1] - 2024-01-21
20
-
21
- * Add/List realm-role/s to a group, Allow role-names with spaces, List groups assigned to role (thanks to @LiquidMagical)
22
-
23
- ## [1.1.0] - 2023-10-03
24
-
25
- * Search for groups with parameters (thanks to @@tlloydthwaites)
26
- * Get client by ID, Find client by Client ID, Update Client (thanks to @gee-forr)
27
-
28
- ## [1.0.24] - 2023-06-07
29
-
30
- * Revert the modifications on the feature 'Update a User' introduced in `1.0.22`. This implementation had breaking changes such as not being able to update several attributes (`first_name`, `email`, etc).
31
-
32
- ## [1.0.23] - 2023-06-01
33
-
34
- * Be more permissive about the version of `rest-client` (`~> 2.0`) (thanks to @type-face)
35
-
36
- ## [1.0.22] - 2023-05-29
37
-
38
- * Fetch user's all active sessions (thanks to @prsanjay)
39
- * Check whether a user is locked or not (thanks to @prsanjay)
40
- * Logout users from all the active sessions (thanks to @prsanjay)
41
-
42
- ## [1.0.21] - 2023-02-03
43
-
44
- * List users who are a member of a group (thanks to @tlloydthwaites)
45
-
46
- ## [1.0.20] - 2022-12-26
47
-
48
- * Create subgroups (thanks to @neckhair)
49
- * Add subgroups to `GroupRepresentation` (thanks to @neckhair)
50
- * Expose `BaseRoleContainingResource.resource_id` (thanks to @neckhair)
51
-
52
- ## [1.0.19] - 2022-12-03
53
-
54
- * Remove specific realm roles from user (thanks to @tlloydthwaites)
55
- * Get role by name (thanks to @tlloydthwaites)
56
-
57
- ## [1.0.18] - 2022-11-24
58
-
59
- * List user realm-level role mappings (thanks to @Kazhuu)
60
-
61
- ## [1.0.17] - 2022-11-02
62
-
63
- * Delete `Client`
64
-
65
- ## [1.0.16] - 2022-10-15
66
-
67
- * Remove `rest-client` warning when adding a group (thanks to @tlloydthwaites)
68
-
69
- ## [1.0.15] - 2022-05-23
70
-
71
- * Delete all "realm" roles mapped to a user
72
-
73
- ## [1.0.14] - 2022-03-30
74
-
75
- * 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.
76
-
77
- ## [1.0.13] - 2022-03-13
78
-
79
- * Add client role on users
80
- * List client roles
81
-
82
- ## [1.0.7] - 2022-03-13
83
-
84
- * Allow to use multiple `KeycloakAdmin::Client` in the same environment
85
-
86
- ## [1.0.6] - 2022-03-13
87
-
88
- * When serializing an array to JSON, force the serialization to use `to_json` for each element. In several contexts (e.g. Rails), `to_json` is not used.
89
-
90
- ## [1.0.5] - 2022-03-11
91
-
92
- * Create `Client`
93
- * Create `Identity Provider` (Breaking change: `IdentityProviderRepresentation.configuration` has been renamed to `IdentityProviderRepresentation.config`)
94
- * Add `Identity Provider Mapping`
95
- * Find service account for a `Client`
96
-
97
- ## [1.0.1] - 2021-10-14
98
-
99
- * List all `Identity Providers`
100
- * Add Group on Users (thanks to @tomuench)
101
- * Remove Group from Users (thanks to @tomuench)
102
-
103
- ## [1.0.0] - 2021-08-03
104
-
105
- * Add `totp` on Users
106
- * Add `required_actions` on Users
107
-
108
- ## [0.7.9] - 2020-10-22
109
-
110
- * Extend `search` function to use complex queries (thanks to @hobbypunk90)
111
-
112
- ## [0.7.8] - 2020-10-15
113
-
114
- * Bug: `rest_client_options` default value does not match the documentation (was `nil` by default, should be `{}`)
115
- * Update documentation about client setup (based on Keycloak 11)
116
-
117
- ## [0.7.7] - 2020-07-10
118
-
119
- * Fix: `Replace request method shorthand with .execute for proper RestClient option support` (thanks to @RomanHargrave)
120
- * When sending action emails, add lifespan as an optional parameter (thanks to @hobbypunk90)
121
-
122
- ## [0.7.6] - 2020-06-22
123
-
124
- Thanks to @hobbypunk90
125
- * Support for action emails and send forgot passsword mail
126
-
127
- ## [0.7.5] - 2020-03-28
128
-
129
- Thanks to @RomanHargrave
130
- * Support for working with federated identity provider (broker) links
131
-
132
- ## [0.7.4] - 2019-10-17
133
-
134
- * Support for Rails 6
135
-
136
- ## [0.7.3] - 2019-07-11
137
-
138
- Thanks to @cederigo:
139
- * For a given user, get her list of groups
140
-
141
- ## [0.7.2] - 2019-06-17
142
-
143
- Thanks to @vlad-ro:
144
-
145
- * Get list of client role mappings for a group
146
- * Save client role mappings for a user/group
147
- * Save realm-level role mappings for a user/group
148
-
149
- ## [0.7.1] - 2019-06-11
150
-
151
- Thanks to @vlad-ro:
152
-
153
- * List users
154
- * List clients
155
- * List groups, create/save a group
156
- * List roles, save a role
157
- * List realms, save/update/delete a realm
158
- * Get list of client role mappings for a user
159
- * Support passing rest client options for user save and search
160
- * Support using gem without ActiveSupport
161
-
162
- ## [0.7.0] - 2019-06-06
163
-
164
- Thanks to @vlad-ro:
165
-
166
- * Support passing rest client options
167
- * More documentation
168
- * More tests
169
- * Better handling of timeouts
170
-
171
- ## [0.6.5] - 2019-05-14
172
-
173
- * Get user
174
-
175
- ## [0.6.2] - 2019-05-14
176
-
177
- * Update users
178
-
179
- ## [0.6] - 2019-03-06
180
-
181
- * Save a locale when creating a new user
182
-
183
- ## [0.5] - 2018-01-26
184
-
185
- * Client to access Custom REST API configurable-token
186
-
187
- ## [0.3] - 2018-01-19
188
-
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.1.5] - 2026-01-05
9
+
10
+ * [Feature] Added the ability to list credentials for a given user.
11
+ * [Fix] Implemented safe parsing for nested JSON elements within `CredentialRepresentation` (handling both `credentialData` and `secretData` fields). Please refer to [the official documentation](https://www.keycloak.org/docs-api/latest/rest-api/index.html#CredentialRepresentation).
12
+ * [Breaking] Renamed `CredentialRepresentation` attribute `created_date` $\rightarrow$ `createdDate` to align with the Keycloak Admin API.
13
+
14
+ ## [1.1.4] - 2025-11-08
15
+
16
+ * Add remove_realm_level_role_name! action on a GroupClient (thanks to @mkrawc)
17
+ * Dependencies: Update Gemfile.lock to bump byebug 12.0.0, rspec 3.13.2, and related dependencies
18
+ * Bug: The 'remove' operation of the 'RoleMapperClient' does not take the global rest options into account
19
+
20
+ ## [1.1.3] - 2024-07-12
21
+
22
+ * Client Authorization management support (thanks to @tillawy)
23
+ * GitHub-actions setup to execute `rspec` (thanks to @tillawy)
24
+
25
+ ## [1.1.2] - 2024-05-22
26
+
27
+ * Add group endpoints (get, children, delete), support for group attributes (thanks to @mkrawc)
28
+ * GroupClient#save method now can update an existing group (thanks to @mkrawc)
29
+ * RoleClient#save method now can update an existing role (thanks to @mkrawc)
30
+
31
+ ## [1.1.1] - 2024-01-21
32
+
33
+ * Add/List realm-role/s to a group, Allow role-names with spaces, List groups assigned to role (thanks to @LiquidMagical)
34
+
35
+ ## [1.1.0] - 2023-10-03
36
+
37
+ * Search for groups with parameters (thanks to @@tlloydthwaites)
38
+ * Get client by ID, Find client by Client ID, Update Client (thanks to @gee-forr)
39
+
40
+ ## [1.0.24] - 2023-06-07
41
+
42
+ * Revert the modifications on the feature 'Update a User' introduced in `1.0.22`. This implementation had breaking changes such as not being able to update several attributes (`first_name`, `email`, etc).
43
+
44
+ ## [1.0.23] - 2023-06-01
45
+
46
+ * Be more permissive about the version of `rest-client` (`~> 2.0`) (thanks to @type-face)
47
+
48
+ ## [1.0.22] - 2023-05-29
49
+
50
+ * Fetch user's all active sessions (thanks to @prsanjay)
51
+ * Check whether a user is locked or not (thanks to @prsanjay)
52
+ * Logout users from all the active sessions (thanks to @prsanjay)
53
+
54
+ ## [1.0.21] - 2023-02-03
55
+
56
+ * List users who are a member of a group (thanks to @tlloydthwaites)
57
+
58
+ ## [1.0.20] - 2022-12-26
59
+
60
+ * Create subgroups (thanks to @neckhair)
61
+ * Add subgroups to `GroupRepresentation` (thanks to @neckhair)
62
+ * Expose `BaseRoleContainingResource.resource_id` (thanks to @neckhair)
63
+
64
+ ## [1.0.19] - 2022-12-03
65
+
66
+ * Remove specific realm roles from user (thanks to @tlloydthwaites)
67
+ * Get role by name (thanks to @tlloydthwaites)
68
+
69
+ ## [1.0.18] - 2022-11-24
70
+
71
+ * List user realm-level role mappings (thanks to @Kazhuu)
72
+
73
+ ## [1.0.17] - 2022-11-02
74
+
75
+ * Delete `Client`
76
+
77
+ ## [1.0.16] - 2022-10-15
78
+
79
+ * Remove `rest-client` warning when adding a group (thanks to @tlloydthwaites)
80
+
81
+ ## [1.0.15] - 2022-05-23
82
+
83
+ * Delete all "realm" roles mapped to a user
84
+
85
+ ## [1.0.14] - 2022-03-30
86
+
87
+ * 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.
88
+
89
+ ## [1.0.13] - 2022-03-13
90
+
91
+ * Add client role on users
92
+ * List client roles
93
+
94
+ ## [1.0.7] - 2022-03-13
95
+
96
+ * Allow to use multiple `KeycloakAdmin::Client` in the same environment
97
+
98
+ ## [1.0.6] - 2022-03-13
99
+
100
+ * When serializing an array to JSON, force the serialization to use `to_json` for each element. In several contexts (e.g. Rails), `to_json` is not used.
101
+
102
+ ## [1.0.5] - 2022-03-11
103
+
104
+ * Create `Client`
105
+ * Create `Identity Provider` (Breaking change: `IdentityProviderRepresentation.configuration` has been renamed to `IdentityProviderRepresentation.config`)
106
+ * Add `Identity Provider Mapping`
107
+ * Find service account for a `Client`
108
+
109
+ ## [1.0.1] - 2021-10-14
110
+
111
+ * List all `Identity Providers`
112
+ * Add Group on Users (thanks to @tomuench)
113
+ * Remove Group from Users (thanks to @tomuench)
114
+
115
+ ## [1.0.0] - 2021-08-03
116
+
117
+ * Add `totp` on Users
118
+ * Add `required_actions` on Users
119
+
120
+ ## [0.7.9] - 2020-10-22
121
+
122
+ * Extend `search` function to use complex queries (thanks to @hobbypunk90)
123
+
124
+ ## [0.7.8] - 2020-10-15
125
+
126
+ * Bug: `rest_client_options` default value does not match the documentation (was `nil` by default, should be `{}`)
127
+ * Update documentation about client setup (based on Keycloak 11)
128
+
129
+ ## [0.7.7] - 2020-07-10
130
+
131
+ * Fix: `Replace request method shorthand with .execute for proper RestClient option support` (thanks to @RomanHargrave)
132
+ * When sending action emails, add lifespan as an optional parameter (thanks to @hobbypunk90)
133
+
134
+ ## [0.7.6] - 2020-06-22
135
+
136
+ Thanks to @hobbypunk90
137
+ * Support for action emails and send forgot passsword mail
138
+
139
+ ## [0.7.5] - 2020-03-28
140
+
141
+ Thanks to @RomanHargrave
142
+ * Support for working with federated identity provider (broker) links
143
+
144
+ ## [0.7.4] - 2019-10-17
145
+
146
+ * Support for Rails 6
147
+
148
+ ## [0.7.3] - 2019-07-11
149
+
150
+ Thanks to @cederigo:
151
+ * For a given user, get her list of groups
152
+
153
+ ## [0.7.2] - 2019-06-17
154
+
155
+ Thanks to @vlad-ro:
156
+
157
+ * Get list of client role mappings for a group
158
+ * Save client role mappings for a user/group
159
+ * Save realm-level role mappings for a user/group
160
+
161
+ ## [0.7.1] - 2019-06-11
162
+
163
+ Thanks to @vlad-ro:
164
+
165
+ * List users
166
+ * List clients
167
+ * List groups, create/save a group
168
+ * List roles, save a role
169
+ * List realms, save/update/delete a realm
170
+ * Get list of client role mappings for a user
171
+ * Support passing rest client options for user save and search
172
+ * Support using gem without ActiveSupport
173
+
174
+ ## [0.7.0] - 2019-06-06
175
+
176
+ Thanks to @vlad-ro:
177
+
178
+ * Support passing rest client options
179
+ * More documentation
180
+ * More tests
181
+ * Better handling of timeouts
182
+
183
+ ## [0.6.5] - 2019-05-14
184
+
185
+ * Get user
186
+
187
+ ## [0.6.2] - 2019-05-14
188
+
189
+ * Update users
190
+
191
+ ## [0.6] - 2019-03-06
192
+
193
+ * Save a locale when creating a new user
194
+
195
+ ## [0.5] - 2018-01-26
196
+
197
+ * Client to access Custom REST API configurable-token
198
+
199
+ ## [0.3] - 2018-01-19
200
+
189
201
  * Support of impersonation
data/Gemfile.lock CHANGED
@@ -1,49 +1,51 @@
1
- PATH
2
- remote: .
3
- specs:
4
- keycloak-admin (1.1.3)
5
- http-cookie (~> 1.0, >= 1.0.3)
6
- rest-client (~> 2.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- byebug (11.1.3)
12
- diff-lcs (1.5.1)
13
- domain_name (0.6.20240107)
14
- http-accept (1.7.0)
15
- http-cookie (1.0.6)
16
- domain_name (~> 0.5)
17
- mime-types (3.5.2)
18
- mime-types-data (~> 3.2015)
19
- mime-types-data (3.2024.0702)
20
- netrc (0.11.0)
21
- rest-client (2.1.0)
22
- http-accept (>= 1.7.0, < 2.0)
23
- http-cookie (>= 1.0.2, < 2.0)
24
- mime-types (>= 1.16, < 4.0)
25
- netrc (~> 0.8)
26
- rspec (3.12.0)
27
- rspec-core (~> 3.12.0)
28
- rspec-expectations (~> 3.12.0)
29
- rspec-mocks (~> 3.12.0)
30
- rspec-core (3.12.3)
31
- rspec-support (~> 3.12.0)
32
- rspec-expectations (3.12.4)
33
- diff-lcs (>= 1.2.0, < 2.0)
34
- rspec-support (~> 3.12.0)
35
- rspec-mocks (3.12.7)
36
- diff-lcs (>= 1.2.0, < 2.0)
37
- rspec-support (~> 3.12.0)
38
- rspec-support (3.12.2)
39
-
40
- PLATFORMS
41
- ruby
42
-
43
- DEPENDENCIES
44
- byebug (= 11.1.3)
45
- keycloak-admin!
46
- rspec (= 3.12.0)
47
-
48
- BUNDLED WITH
49
- 2.1.4
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ keycloak-admin (1.1.5)
5
+ http-cookie (~> 1.0, >= 1.0.3)
6
+ rest-client (~> 2.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ byebug (12.0.0)
12
+ diff-lcs (1.6.2)
13
+ domain_name (0.6.20240107)
14
+ http-accept (1.7.0)
15
+ http-cookie (1.1.0)
16
+ domain_name (~> 0.5)
17
+ logger (1.7.0)
18
+ mime-types (3.7.0)
19
+ logger
20
+ mime-types-data (~> 3.2025, >= 3.2025.0507)
21
+ mime-types-data (3.2025.0924)
22
+ netrc (0.11.0)
23
+ rest-client (2.1.0)
24
+ http-accept (>= 1.7.0, < 2.0)
25
+ http-cookie (>= 1.0.2, < 2.0)
26
+ mime-types (>= 1.16, < 4.0)
27
+ netrc (~> 0.8)
28
+ rspec (3.13.2)
29
+ rspec-core (~> 3.13.0)
30
+ rspec-expectations (~> 3.13.0)
31
+ rspec-mocks (~> 3.13.0)
32
+ rspec-core (3.13.6)
33
+ rspec-support (~> 3.13.0)
34
+ rspec-expectations (3.13.5)
35
+ diff-lcs (>= 1.2.0, < 2.0)
36
+ rspec-support (~> 3.13.0)
37
+ rspec-mocks (3.13.7)
38
+ diff-lcs (>= 1.2.0, < 2.0)
39
+ rspec-support (~> 3.13.0)
40
+ rspec-support (3.13.6)
41
+
42
+ PLATFORMS
43
+ ruby
44
+
45
+ DEPENDENCIES
46
+ byebug (= 12.0.0)
47
+ keycloak-admin!
48
+ rspec (= 3.13.2)
49
+
50
+ BUNDLED WITH
51
+ 2.1.4