In my client configuration in Keycloak I have enabled groups mapping:
and in my Spring Boot application I have a Controller that prints the principal
:
@GetMapping("/account/me")
public ResponseEntity<Principal> me(Principal principal) {
return ResponseEntity.ok(principal);
}
but it doesn't contains the group that I defined in Keycloak.
As mentioned here there should be an additional section other_claims
. But it is not added!
Why?