%@page import="de.mpg.escidoc.services.aa.Aa"%>
<%@page import="de.mpg.escidoc.services.aa.AuthenticationVO.Grant"%>
<%@page import="de.mpg.escidoc.services.aa.AuthenticationVO.Role"%>
<%@page import="de.mpg.escidoc.services.aa.AuthenticationVO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
eSciDoc AA Test Page
Login
Authentication
<% Aa aa = new Aa(request);
AuthenticationVO auth = (AuthenticationVO) session.getAttribute("authentication"); %>
<% if (auth != null) { %>
Type: <%= auth.getType() %>
Full user name: <%= auth.getFullName() %>
User-ID: <%= auth.getUserId() %>
Login name: <%= auth.getUsername() %>
Used TAN: <%= auth.getTan() %>
Roles
<% for (Role role : auth.getRoles()) { %>
Role: <%= role.getKey() %>
<% } %>
Grants
<% for (Grant grant : auth.getGrants()) { %>
Grant: <%= grant.getKey() %> on <%= grant.getValue() %>
<% } %>
<% } else { %>
Not authenticated.
<% } %>