ulrich
2017-01-15 ecccfcd9f42501496ad7e5444ef9098f28a19b40
web/WEB-INF/web.xml
@@ -5,8 +5,20 @@
        <param-name>dsname</param-name>
        <param-value>jdbc/NewUserDB</param-value>
    </context-param>
    <context-param>
        <param-name>digester</param-name>
        <param-value>de.uhilger.um.TomcatDigester</param-value>
    </context-param>
    <filter>
        <filter-name>NiceFilter</filter-name>
        <filter-class>de.uhilger.um.web.NiceFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>NiceFilter</filter-name>
        <url-pattern>/svc/*</url-pattern>
    </filter-mapping>
    <listener>
        <listener-class>de.uhilger.um.App</listener-class>
        <listener-class>de.uhilger.um.web.Initialiser</listener-class>
    </listener>
    <servlet>
        <servlet-name>TransitServlet</servlet-name>
@@ -25,4 +37,29 @@
            30
        </session-timeout>
    </session-config>
    <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>/svc/*</url-pattern>
            <url-pattern>/api/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <description>nutzerAdminAuthContraint</description>
            <role-name>nutzerAdmin</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-error-page>/login_error.jsp</form-error-page>
        </form-login-config>
    </login-config>
    <security-role>
        <description/>
        <role-name>nutzerAdmin</role-name>
    </security-role>
</web-app>