ulrich@undisclosed
2020-02-26 2c4bbb37245a2ebd946b372087294660fcc9676e
web/WEB-INF/web.xml
@@ -29,9 +29,33 @@
            <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>
@@ -52,6 +76,19 @@
            <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>
        </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>
@@ -63,4 +100,8 @@
        <description/>
        <role-name>nutzerAdmin</role-name>
    </security-role>
    <security-role>
        <description/>
        <role-name>nutzerProfil</role-name>
    </security-role>
</web-app>