6
6
7
7
# Keycloak Admin REST API Client
8
8
9
- PHP client to interact with [ Keycloak's Admin REST API] ( https://www.keycloak.org/docs-api/24 .0.0/rest-api/index.html ) .
9
+ PHP client to interact with [ Keycloak's Admin REST API] ( https://www.keycloak.org/docs-api/25 .0.0/rest-api/index.html ) .
10
10
11
11
Inspired by [ keycloak/keycloak-nodejs-admin-client] ( https://github.com/keycloak/keycloak-nodejs-admin-client ) .
12
12
@@ -49,7 +49,7 @@ echo sprintf(
49
49
will print e.g.
50
50
51
51
``` text
52
- Keycloak 24 .0.0 is running on Linux/5.10.25-linuxkit (amd64) with OpenJDK 64-Bit Server VM/11.0.11 since 0 days, 2 hours, 37 minutes, 7 seconds and is currently using 139 MB of 512 MB (28 %) memory.
52
+ Keycloak 25 .0.0 is running on Linux/5.10.25-linuxkit (amd64) with OpenJDK 64-Bit Server VM/11.0.11 since 0 days, 2 hours, 37 minutes, 7 seconds and is currently using 139 MB of 512 MB (28 %) memory.
53
53
```
54
54
55
55
More examples can be found in the [ examples] ( examples ) directory.
@@ -104,15 +104,15 @@ $myCustomRepresentation = $myCustomResource->myCustomEndpoint();
104
104
105
105
## Available Resources
106
106
107
- ### [ Attack Detection] ( https://www.keycloak.org/docs-api/24 .0.0/rest-api/index.html#_attack_detection )
107
+ ### [ Attack Detection] ( https://www.keycloak.org/docs-api/25 .0.0/rest-api/index.html#_attack_detection )
108
108
109
109
| Endpoint | Response | API |
110
110
| ----------------------------------------------------------------------------| -------------------------| -------------------------------------------------------------------|
111
111
| ` DELETE /admin/realms/{realm}/attack-detection/brute-force/users ` | ` n/a ` | [ AttackDetection::clear()] ( src/Resource/AttackDetection.php ) |
112
112
| ` GET /admin/realms/{realm}/attack-detection/brute-force/users/{userId} ` | [ Map] ( src/Type/Map.php ) | [ AttackDetection::userStatus()] ( src/Resource/AttackDetection.php ) |
113
113
| ` DELETE /admin/realms/{realm}/attack-detection/brute-force/users/{userId} ` | ` n/a ` | [ AttackDetection::clearUser()] ( src/Resource/AttackDetection.php ) |
114
114
115
- ### [ Clients] ( https://www.keycloak.org/docs-api/24 .0.0/rest-api/index.html#_clients )
115
+ ### [ Clients] ( https://www.keycloak.org/docs-api/25 .0.0/rest-api/index.html#_clients )
116
116
117
117
| Endpoint | Response | API |
118
118
| ---------------------------------------------------| ---------------------------------------------------------| -----------------------------------------------|
@@ -121,7 +121,7 @@ $myCustomRepresentation = $myCustomResource->myCustomEndpoint();
121
121
| ` PUT /admin/realms/{realm}/clients/{client-uuid} ` | [ Client] ( src/Representation/Client.php ) | [ Clients::update()] ( src/Resource/Clients.php ) |
122
122
| ` POST /admin/realms/{realm}/clients ` | [ Client] ( src/Representation/Client.php ) | [ Clients::import()] ( src/Resource/Clients.php ) |
123
123
124
- ### [ Groups] ( https://www.keycloak.org/docs-api/24 .0.0/rest-api/index.html#_clients )
124
+ ### [ Groups] ( https://www.keycloak.org/docs-api/25 .0.0/rest-api/index.html#_clients )
125
125
126
126
| Endpoint | Response | API |
127
127
| ---------------------------------------------------| -------------------------------------------------------| -----------------------------------------------|
@@ -133,7 +133,7 @@ $myCustomRepresentation = $myCustomResource->myCustomEndpoint();
133
133
| ` POST /admin/realms/{realm}/groups/{id}/children ` | ` n/a ` | [ Groups::create()] ( src/Resource/Groups.php ) |
134
134
| ` DELETE /admin/realms/{realm}/groups ` | ` n/a ` | [ Groups::delete()] ( src/Resource/Groups.php ) |
135
135
136
- ### [ Realms Admin] ( https://www.keycloak.org/docs-api/24 .0.0/rest-api/index.html#_realms_admin )
136
+ ### [ Realms Admin] ( https://www.keycloak.org/docs-api/25 .0.0/rest-api/index.html#_realms_admin )
137
137
138
138
| Endpoint | Response | API |
139
139
| ------------------------------------------------| -------------------------------------------------------| --------------------------------------------------------|
@@ -148,7 +148,7 @@ $myCustomRepresentation = $myCustomResource->myCustomEndpoint();
148
148
| ` POST /admin/realms/{realm}/clear-realm-cache ` | ` n/a ` | [ Realms::clearRealmCache()] ( src/Resource/Realms.php ) |
149
149
| ` POST /admin/realms/{realm}/clear-user-cache ` | ` n/a ` | [ Realms::clearUserCache()] ( src/Resource/Realms.php ) |
150
150
151
- ### [ Users] ( https://www.keycloak.org/docs-api/24 .0.0/rest-api/index.html#_users )
151
+ ### [ Users] ( https://www.keycloak.org/docs-api/25 .0.0/rest-api/index.html#_users )
152
152
153
153
| Endpoint | Response | API |
154
154
| ---------------------------------------------------------| -----------------------------------------------------------------| ----------------------------------------------------------------|
@@ -168,7 +168,7 @@ $myCustomRepresentation = $myCustomResource->myCustomEndpoint();
168
168
| ` PUT /{realm}/users/{id}/execute-actions-email ` | ` n/a ` | [ Users::executeActionsEmail()] ( src/Resource/Users.php ) |
169
169
| ` GET /admin/realms/{realm}/users/{userId}/credentials ` | [ CredentialCollection] ( src/Collection/CredentialCollection.php ) | [ Users::credentials()] ( src/Resource/Users.php ) |
170
170
171
- ### [ Roles] ( https://www.keycloak.org/docs-api/24 .0.0/rest-api/index.html#_roles )
171
+ ### [ Roles] ( https://www.keycloak.org/docs-api/25 .0.0/rest-api/index.html#_roles )
172
172
173
173
| Endpoint | Response | API |
174
174
| -------------------------------------------------| -----------------------------------------------------| -------------------------------------------|
@@ -177,7 +177,7 @@ $myCustomRepresentation = $myCustomResource->myCustomEndpoint();
177
177
| ` POST /admin/realms/{realm}/roles ` | ` n/a ` | [ Roles::create()] ( src/Resource/Roles.php ) |
178
178
| ` DELETE /admin/realms/{realm}/roles/{roleName} ` | ` n/a ` | [ Roles::delete()] ( src/Resource/Roles.php ) |
179
179
180
- ### [ Root] ( https://www.keycloak.org/docs-api/24 .0.0/rest-api/index.html#_root )
180
+ ### [ Root] ( https://www.keycloak.org/docs-api/25 .0.0/rest-api/index.html#_root )
181
181
182
182
| Endpoint | Response | API |
183
183
| -------------------------| -------------------------------------------------| --------------------------------------------------|
0 commit comments