Add integration test for ssh key export #28

Merged
stb merged 3 commits from integration-testing into main 2026-07-18 15:09:38 +02:00
Showing only changes of commit b292fd8023 - Show all commits

Give a meaningful error message when the necessary role is missing

Stefan Bethke 2026-07-18 15:01:26 +02:00

View file

@ -109,6 +109,7 @@ public class AttributeEndpointsResourceProvider implements RealmResourceProvider
UserModel authUser = auth.getUser();
if (!authUser.hasRole(authRole)) {
LOG.info("User " + authUser.getUsername() + " does not have required role " + authRole.getName());
throw new ForbiddenException("User does not have required auth role.");
}