%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %> <%@ page import="org.keycloak.KeycloakSecurityContext" %> <%@ page import="org.keycloak.common.util.KeycloakUriBuilder" %> <%@ page import="org.keycloak.constants.ServiceUrlConstants" %> <%@ page import="org.keycloak.representations.AccessToken" %> <%@ page import="org.keycloak.representations.AccessToken.Access" %> <%@ page import="org.keycloak.representations.IDToken" %> <%@ page import="java.util.Map" %> <%@ page session="false" %>
Username: <%=idToken.getPreferredUsername()%>
Email: <%=idToken.getEmail()%>
Full Name: <%=idToken.getName()%>
First: <%=idToken.getGivenName()%>
Last: <%=idToken.getFamilyName()%>
<%= claim.getKey() %>: <%= claim.getValue().toString() %> <% } %>
Realm roles: <%= accessToken.getRealmAccess().getRoles().toString() %>
<% for (Map.EntryResource: <%= acc.getKey() %>, Roles: <%= acc.getValue().getRoles().toString() %>
<% } %>