keycloak-admin 1.1.1 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/Dockerfile +24 -0
  3. data/.github/workflows/ci.yml +83 -0
  4. data/CHANGELOG.md +12 -2
  5. data/Gemfile.lock +8 -8
  6. data/README.md +277 -4
  7. data/lib/keycloak-admin/client/client_authz_permission_client.rb +81 -0
  8. data/lib/keycloak-admin/client/client_authz_policy_client.rb +76 -0
  9. data/lib/keycloak-admin/client/client_authz_resource_client.rb +93 -0
  10. data/lib/keycloak-admin/client/client_authz_scope_client.rb +71 -0
  11. data/lib/keycloak-admin/client/group_client.rb +41 -13
  12. data/lib/keycloak-admin/client/realm_client.rb +16 -0
  13. data/lib/keycloak-admin/client/role_client.rb +12 -10
  14. data/lib/keycloak-admin/client/user_client.rb +1 -0
  15. data/lib/keycloak-admin/representation/client_authz_permission_representation.rb +34 -0
  16. data/lib/keycloak-admin/representation/client_authz_policy_config_representation.rb +15 -0
  17. data/lib/keycloak-admin/representation/client_authz_policy_representation.rb +27 -0
  18. data/lib/keycloak-admin/representation/client_authz_resource_representation.rb +26 -0
  19. data/lib/keycloak-admin/representation/client_authz_scope_representation.rb +17 -0
  20. data/lib/keycloak-admin/representation/group_representation.rb +9 -5
  21. data/lib/keycloak-admin/version.rb +1 -1
  22. data/lib/keycloak-admin.rb +9 -0
  23. data/spec/client/client_authz_permission_client_spec.rb +170 -0
  24. data/spec/client/client_authz_policy_client_spec.rb +170 -0
  25. data/spec/client/client_authz_resource_client_spec.rb +150 -0
  26. data/spec/client/client_authz_scope_client_spec.rb +134 -0
  27. data/spec/client/client_client_spec.rb +2 -2
  28. data/spec/client/client_role_mappings_client_spec.rb +2 -2
  29. data/spec/client/group_client_spec.rb +137 -15
  30. data/spec/client/identity_provider_client_spec.rb +1 -1
  31. data/spec/client/realm_client_spec.rb +4 -4
  32. data/spec/client/role_client_spec.rb +12 -16
  33. data/spec/client/role_mapper_client_spec.rb +1 -1
  34. data/spec/client/token_client_spec.rb +1 -1
  35. data/spec/client/user_client_spec.rb +5 -5
  36. data/spec/configuration_spec.rb +1 -1
  37. data/spec/integration/client_authorization_spec.rb +95 -0
  38. data/spec/representation/client_authz_permission_representation_spec.rb +52 -0
  39. data/spec/representation/client_authz_policy_representation_spec.rb +47 -0
  40. data/spec/representation/client_authz_resource_representation_spec.rb +33 -0
  41. data/spec/representation/client_authz_scope_representation_spec.rb +19 -0
  42. data/spec/representation/group_representation_spec.rb +7 -0
  43. metadata +23 -3
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.1.1
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lorent Lempereur
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-21 00:00:00.000000000 Z
11
+ date: 2024-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http-cookie
@@ -79,6 +79,8 @@ executables: []
79
79
  extensions: []
80
80
  extra_rdoc_files: []
81
81
  files:
82
+ - ".github/workflows/Dockerfile"
83
+ - ".github/workflows/ci.yml"
82
84
  - ".gitignore"
83
85
  - ".rspec"
84
86
  - CHANGELOG.md
@@ -92,6 +94,10 @@ files:
92
94
  - lib/keycloak-admin.rb
93
95
  - lib/keycloak-admin/client/attack_detection_client.rb
94
96
  - lib/keycloak-admin/client/client.rb
97
+ - lib/keycloak-admin/client/client_authz_permission_client.rb
98
+ - lib/keycloak-admin/client/client_authz_policy_client.rb
99
+ - lib/keycloak-admin/client/client_authz_resource_client.rb
100
+ - lib/keycloak-admin/client/client_authz_scope_client.rb
95
101
  - lib/keycloak-admin/client/client_client.rb
96
102
  - lib/keycloak-admin/client/client_role_client.rb
97
103
  - lib/keycloak-admin/client/client_role_mappings_client.rb
@@ -106,6 +112,11 @@ files:
106
112
  - lib/keycloak-admin/configuration.rb
107
113
  - lib/keycloak-admin/representation/attack_detection_representation.rb
108
114
  - lib/keycloak-admin/representation/camel_json.rb
115
+ - lib/keycloak-admin/representation/client_authz_permission_representation.rb
116
+ - lib/keycloak-admin/representation/client_authz_policy_config_representation.rb
117
+ - lib/keycloak-admin/representation/client_authz_policy_representation.rb
118
+ - lib/keycloak-admin/representation/client_authz_resource_representation.rb
119
+ - lib/keycloak-admin/representation/client_authz_scope_representation.rb
109
120
  - lib/keycloak-admin/representation/client_representation.rb
110
121
  - lib/keycloak-admin/representation/credential_representation.rb
111
122
  - lib/keycloak-admin/representation/federated_identity_representation.rb
@@ -126,6 +137,10 @@ files:
126
137
  - lib/keycloak-admin/resource/user_resource.rb
127
138
  - lib/keycloak-admin/version.rb
128
139
  - spec/client/attack_detection_client_spec.rb
140
+ - spec/client/client_authz_permission_client_spec.rb
141
+ - spec/client/client_authz_policy_client_spec.rb
142
+ - spec/client/client_authz_resource_client_spec.rb
143
+ - spec/client/client_authz_scope_client_spec.rb
129
144
  - spec/client/client_client_spec.rb
130
145
  - spec/client/client_role_mappings_client_spec.rb
131
146
  - spec/client/client_spec.rb
@@ -138,7 +153,12 @@ files:
138
153
  - spec/client/token_client_spec.rb
139
154
  - spec/client/user_client_spec.rb
140
155
  - spec/configuration_spec.rb
156
+ - spec/integration/client_authorization_spec.rb
141
157
  - spec/representation/attack_detection_representation_spec.rb
158
+ - spec/representation/client_authz_permission_representation_spec.rb
159
+ - spec/representation/client_authz_policy_representation_spec.rb
160
+ - spec/representation/client_authz_resource_representation_spec.rb
161
+ - spec/representation/client_authz_scope_representation_spec.rb
142
162
  - spec/representation/client_representation_spec.rb
143
163
  - spec/representation/group_representation_spec.rb
144
164
  - spec/representation/identity_provider_mapper_representation_spec.rb
@@ -170,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
190
  - !ruby/object:Gem::Version
171
191
  version: '0'
172
192
  requirements: []
173
- rubygems_version: 3.4.10
193
+ rubygems_version: 3.5.11
174
194
  signing_key:
175
195
  specification_version: 4
176
196
  summary: Keycloak Admin REST API client written in Ruby