output Roles in auth_test script (#15587)

This commit is contained in:
Peter Childs 2023-11-17 23:54:29 +10:30 committed by GitHub
parent 2392153a9b
commit ac61c38356
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,6 +126,9 @@ try {
if (method_exists($authorizer, 'getGroupList')) {
echo 'Groups: ' . implode('; ', $authorizer->getGroupList()) . PHP_EOL;
}
if (method_exists($authorizer, 'getRoles')) {
echo 'Roles: ' . implode('; ', $authorizer->getRoles($test_username)) . PHP_EOL;
}
}
} catch (Exception $e) {
echo 'Error: ' . get_class($e) . " thrown!\n";