%@page import="org.keycloak.AuthorizationContext" %> <%@ page import="org.keycloak.KeycloakSecurityContext" %> <% KeycloakSecurityContext keycloakSecurityContext = (KeycloakSecurityContext) request.getAttribute(KeycloakSecurityContext.class.getName()); AuthorizationContext authzContext = keycloakSecurityContext.getAuthorizationContext(); %>
Here is a dynamic menu built from the permissions returned by the server: