Skip to content

Commit 33271d3

Browse files
author
Michael Rosenberger
committed
[BREAKING]feat: makes param $realm optional
Allows to set a default realm and override it if needed Relates: #173
1 parent ede904b commit 33271d3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/users-all.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
require_once __DIR__ . '/../vendor/autoload.php';
99

1010
$keycloak = (new Builder())
11-
->withBaseUrl($_SERVER['KEYCLOAK_BASE_URL'] ?? 'http://qa.idp.aeb.com')
12-
->withGrantType(GrantType::clientCredentials('keycloak-admin-client', 'keycloak-admin-client'))
11+
->withBaseUrl($_SERVER['KEYCLOAK_BASE_URL'] ?? 'http://keycloak:8080')
12+
->withGrantType(GrantType::password('admin', 'admin'))
1313
->build();
1414

15-
$realm = 'aeb';
15+
$realm = 'master';
1616
$users = $keycloak->users()->all(realm: $realm);
1717

1818
echo sprintf('Realm "%s" has the following users:%s', $realm, PHP_EOL);

0 commit comments

Comments
 (0)