1 parent ede904b commit 33271d3Copy full SHA for 33271d3
1 file changed
examples/users-all.php
@@ -8,11 +8,11 @@
8
require_once __DIR__ . '/../vendor/autoload.php';
9
10
$keycloak = (new Builder())
11
- ->withBaseUrl($_SERVER['KEYCLOAK_BASE_URL'] ?? 'http://qa.idp.aeb.com')
12
- ->withGrantType(GrantType::clientCredentials('keycloak-admin-client', 'keycloak-admin-client'))
+ ->withBaseUrl($_SERVER['KEYCLOAK_BASE_URL'] ?? 'http://keycloak:8080')
+ ->withGrantType(GrantType::password('admin', 'admin'))
13
->build();
14
15
-$realm = 'aeb';
+$realm = 'master';
16
$users = $keycloak->users()->all(realm: $realm);
17
18
echo sprintf('Realm "%s" has the following users:%s', $realm, PHP_EOL);
0 commit comments