From 5daeb20e992d5d0c6ab5c68051a2448c062ffe53 Mon Sep 17 00:00:00 2001 From: ulrich Date: Mon, 18 May 2020 12:00:55 +0000 Subject: [PATCH] Nutzerprofil (in Arbeit) --- web/WEB-INF/web.xml | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 47 insertions(+), 1 deletions(-) diff --git a/web/WEB-INF/web.xml b/web/WEB-INF/web.xml index 912ca8f..c2ea0b7 100644 --- a/web/WEB-INF/web.xml +++ b/web/WEB-INF/web.xml @@ -29,21 +29,49 @@ <param-value>de.uhilger.um.api</param-value> </init-param> </servlet> + <servlet> + <servlet-name>PublicTransit</servlet-name> + <servlet-class>de.uhilger.transit.web.TransitServlet</servlet-class> + <init-param> + <param-name>klassen</param-name> + <param-value>de.uhilger.um.pub</param-value> + </init-param> + </servlet> + <servlet> + <servlet-name>ProfilDienst</servlet-name> + <servlet-class>de.uhilger.transit.web.TransitServlet</servlet-class> + <init-param> + <param-name>klassen</param-name> + <param-value>de.uhilger.um.api.Profil</param-value> + </init-param> + </servlet> <servlet-mapping> <servlet-name>TransitServlet</servlet-name> <url-pattern>/api</url-pattern> + </servlet-mapping> + <servlet-mapping> + <servlet-name>PublicTransit</servlet-name> + <url-pattern>/pub</url-pattern> + </servlet-mapping> + <servlet-mapping> + <servlet-name>ProfilDienst</servlet-name> + <url-pattern>/prf</url-pattern> </servlet-mapping> <session-config> <session-timeout> 30 </session-timeout> </session-config> + <welcome-file-list> + <welcome-file>index.html</welcome-file> + </welcome-file-list> <security-constraint> <display-name>nutzerAdminConstraint</display-name> <web-resource-collection> <web-resource-name>nutzerAdmin</web-resource-name> <description>Nutzer-Administration</description> <url-pattern>/ui/*</url-pattern> + <url-pattern>/ui2/*</url-pattern> <url-pattern>/svc/*</url-pattern> <url-pattern>/api/*</url-pattern> </web-resource-collection> @@ -52,10 +80,24 @@ <role-name>nutzerAdmin</role-name> </auth-constraint> </security-constraint> + <security-constraint> + <display-name>nutzerProfilConstraint</display-name> + <web-resource-collection> + <web-resource-name>nutzerProfil</web-resource-name> + <description>Nutzerprofil</description> + <url-pattern>/prf/*</url-pattern> + <url-pattern>/profil/*</url-pattern> + <url-pattern>/profil2/*</url-pattern> + </web-resource-collection> + <auth-constraint> + <description>nutzerProfilAuthContraint</description> + <role-name>nutzerProfil</role-name> + </auth-constraint> + </security-constraint> <login-config> <auth-method>FORM</auth-method> <form-login-config> - <form-login-page>/login_form.html</form-login-page> + <form-login-page>/login_form.jsp</form-login-page> <form-error-page>/login_error.jsp</form-error-page> </form-login-config> </login-config> @@ -63,4 +105,8 @@ <description/> <role-name>nutzerAdmin</role-name> </security-role> + <security-role> + <description/> + <role-name>nutzerProfil</role-name> + </security-role> </web-app> -- Gitblit v1.9.3