Skip to content

Commit a840b4e

Browse files
authored
Merge pull request #121 from fschmtt/keycloak-26
feat: Keycloak 26 support
2 parents 3a33a88 + f75484d commit a840b4e

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

.github/workflows/php-integration.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
keycloak: [ 17.0.0, 18.0.0, 19.0.0, 20.0.0, 21.0.0, 22.0.0, 22.0.5, 23.0.0, 24.0.0, 25.0.0 ]
15+
keycloak: [ 17.0.0, 18.0.0, 19.0.0, 20.0.0, 21.0.0, 22.0.0, 22.0.5, 23.0.0, 24.0.0, 25.0.0, 26.0.0 ]
1616
php: [ 8.1 ]
1717

1818
env:

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Keycloak Admin REST API Client
88

9-
PHP client to interact with [Keycloak's Admin REST API](https://www.keycloak.org/docs-api/25.0.0/rest-api/index.html).
9+
PHP client to interact with [Keycloak's Admin REST API](https://www.keycloak.org/docs-api/26.0.0/rest-api/index.html).
1010

1111
Inspired by [keycloak/keycloak-nodejs-admin-client](https://github.com/keycloak/keycloak-nodejs-admin-client).
1212

@@ -49,7 +49,7 @@ echo sprintf(
4949
will print e.g.
5050

5151
```text
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.
52+
Keycloak 26.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.
5353
```
5454

5555
More examples can be found in the [examples](examples) directory.
@@ -104,15 +104,15 @@ $myCustomRepresentation = $myCustomResource->myCustomEndpoint();
104104

105105
## Available Resources
106106

107-
### [Attack Detection](https://www.keycloak.org/docs-api/25.0.0/rest-api/index.html#_attack_detection)
107+
### [Attack Detection](https://www.keycloak.org/docs-api/26.0.0/rest-api/index.html#_attack_detection)
108108

109109
| Endpoint | Response | API |
110110
|----------------------------------------------------------------------------|-------------------------|-------------------------------------------------------------------|
111111
| `DELETE /admin/realms/{realm}/attack-detection/brute-force/users` | `n/a` | [AttackDetection::clear()](src/Resource/AttackDetection.php) |
112112
| `GET /admin/realms/{realm}/attack-detection/brute-force/users/{userId}` | [Map](src/Type/Map.php) | [AttackDetection::userStatus()](src/Resource/AttackDetection.php) |
113113
| `DELETE /admin/realms/{realm}/attack-detection/brute-force/users/{userId}` | `n/a` | [AttackDetection::clearUser()](src/Resource/AttackDetection.php) |
114114

115-
### [Clients](https://www.keycloak.org/docs-api/25.0.0/rest-api/index.html#_clients)
115+
### [Clients](https://www.keycloak.org/docs-api/26.0.0/rest-api/index.html#_clients)
116116

117117
| Endpoint | Response | API |
118118
|----------------------------------------------------------------|---------------------------------------------------------|--------------------------------------------------------|
@@ -122,7 +122,7 @@ $myCustomRepresentation = $myCustomResource->myCustomEndpoint();
122122
| `POST /admin/realms/{realm}/clients` | [Client](src/Representation/Client.php) | [Clients::import()](src/Resource/Clients.php) |
123123
| `GET /admin/realms/{realm}/clients/{clientUuid}/client-secret` | [Client](src/Representation/Client.php) | [Clients::getClientSecret()](src/Resource/Clients.php) |
124124

125-
### [Groups](https://www.keycloak.org/docs-api/25.0.0/rest-api/index.html#_clients)
125+
### [Groups](https://www.keycloak.org/docs-api/26.0.0/rest-api/index.html#_clients)
126126

127127
| Endpoint | Response | API |
128128
|---------------------------------------------------|-------------------------------------------------------|-----------------------------------------------|
@@ -134,7 +134,7 @@ $myCustomRepresentation = $myCustomResource->myCustomEndpoint();
134134
| `POST /admin/realms/{realm}/groups/{id}/children` | `n/a` | [Groups::create()](src/Resource/Groups.php) |
135135
| `DELETE /admin/realms/{realm}/groups` | `n/a` | [Groups::delete()](src/Resource/Groups.php) |
136136

137-
### [Realms Admin](https://www.keycloak.org/docs-api/25.0.0/rest-api/index.html#_realms_admin)
137+
### [Realms Admin](https://www.keycloak.org/docs-api/26.0.0/rest-api/index.html#_realms_admin)
138138

139139
| Endpoint | Response | API |
140140
|------------------------------------------------|-------------------------------------------------------|--------------------------------------------------------|
@@ -149,7 +149,7 @@ $myCustomRepresentation = $myCustomResource->myCustomEndpoint();
149149
| `POST /admin/realms/{realm}/clear-realm-cache` | `n/a` | [Realms::clearRealmCache()](src/Resource/Realms.php) |
150150
| `POST /admin/realms/{realm}/clear-user-cache` | `n/a` | [Realms::clearUserCache()](src/Resource/Realms.php) |
151151

152-
### [Users](https://www.keycloak.org/docs-api/25.0.0/rest-api/index.html#_users)
152+
### [Users](https://www.keycloak.org/docs-api/26.0.0/rest-api/index.html#_users)
153153

154154
| Endpoint | Response | API |
155155
|---------------------------------------------------------|-----------------------------------------------------------------|----------------------------------------------------------------|
@@ -169,7 +169,7 @@ $myCustomRepresentation = $myCustomResource->myCustomEndpoint();
169169
| `PUT /{realm}/users/{id}/execute-actions-email` | `n/a` | [Users::executeActionsEmail()](src/Resource/Users.php) |
170170
| `GET /admin/realms/{realm}/users/{userId}/credentials` | [CredentialCollection](src/Collection/CredentialCollection.php) | [Users::credentials()](src/Resource/Users.php) |
171171

172-
### [Roles](https://www.keycloak.org/docs-api/25.0.0/rest-api/index.html#_roles)
172+
### [Roles](https://www.keycloak.org/docs-api/26.0.0/rest-api/index.html#_roles)
173173

174174
| Endpoint | Response | API |
175175
|-------------------------------------------------|-----------------------------------------------------|-------------------------------------------|
@@ -178,7 +178,7 @@ $myCustomRepresentation = $myCustomResource->myCustomEndpoint();
178178
| `POST /admin/realms/{realm}/roles` | `n/a` | [Roles::create()](src/Resource/Roles.php) |
179179
| `DELETE /admin/realms/{realm}/roles/{roleName}` | `n/a` | [Roles::delete()](src/Resource/Roles.php) |
180180

181-
### [Root](https://www.keycloak.org/docs-api/25.0.0/rest-api/index.html#_root)
181+
### [Root](https://www.keycloak.org/docs-api/26.0.0/rest-api/index.html#_root)
182182

183183
| Endpoint | Response | API |
184184
|-------------------------|-------------------------------------------------|--------------------------------------------------|

docker-compose.yml renamed to compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
working_dir: /app
77

88
keycloak:
9-
image: quay.io/keycloak/keycloak:24.0.0
9+
image: quay.io/keycloak/keycloak:25.0.0
1010
command: start-dev
1111
environment:
1212
KEYCLOAK_ADMIN: admin

tests/Unit/Http/PropertyFilterTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,6 @@ public static function supportedKeycloakVersions(): Generator
9999
yield ['23.0.0'];
100100
yield ['24.0.0'];
101101
yield ['25.0.0'];
102+
yield ['26.0.0'];
102103
}
103104
}

0 commit comments

Comments
 (0)