diff --git a/hsarweb/src/de/hsadmin/web/Context.java b/hsarweb/src/de/hsadmin/web/Context.java index 06f94f7..8564434 100644 --- a/hsarweb/src/de/hsadmin/web/Context.java +++ b/hsarweb/src/de/hsadmin/web/Context.java @@ -20,6 +20,7 @@ public class Context { public String getUser() { Assertion assertion = (Assertion) getContext().getSessionMap().get(AbstractCasFilter.CONST_CAS_ASSERTION); AttributePrincipal principal = assertion.getPrincipal(); + String proxyTicket = principal.getProxyTicketFor("https://agnes.ostwall195.de/backend"); return principal.getName(); } diff --git a/hsarweb/webapp/WEB-INF/web.xml b/hsarweb/webapp/WEB-INF/web.xml index eda5425..1a88366 100644 --- a/hsarweb/webapp/WEB-INF/web.xml +++ b/hsarweb/webapp/WEB-INF/web.xml @@ -3,21 +3,22 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> + + + serverName + http://agnes.ostwall195.de:8180 + CAS Authentication Filter org.jasig.cas.client.authentication.AuthenticationFilter casServerLoginUrl - http://agnes.ostwall195.de:8080/cas/login - - - serverName - http://agnes.ostwall195.de:8080 + https://agnes.ostwall195.de:9443/cas/login service - http://agnes.ostwall195.de:8080/hsarweb + http://agnes.ostwall195.de:8180/hsarweb @@ -26,32 +27,32 @@ org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter casServerUrlPrefix - http://agnes.ostwall195.de:8080/cas + https://agnes.ostwall195.de:9443/cas - serverName - http://agnes.ostwall195.de:8080 - - - proxyReceptorUrl - /proxyReceptor - + proxyReceptorUrl + /proxyCallback + + + proxyCallbackUrl + https://agnes.ostwall195.de:9443/hsarweb/proxyCallback + service - http://agnes.ostwall195.de:8080/hsarweb + http://agnes.ostwall195.de:8180/hsarweb - - CAS Authentication Filter - /* - - CAS Validation Filter /* + + CAS Authentication Filter + /* + + Faces Servlet javax.faces.webapp.FacesServlet