All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rint.print-lib.3.20.2.source-code.mapfish-spring-security.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>

<beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xmlns="http://www.springframework.org/schema/security"
             xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd">

    <!-- needed to allow double slashes in the URLs -->
    <beans:bean id="httpFirewall" class="org.springframework.security.web.firewall.DefaultHttpFirewall">
        <beans:property name="allowUrlEncodedSlash" value="true"/>
    </beans:bean>

    <http-firewall ref="httpFirewall"/>

    <http use-expressions="true">
        <!-- in order to get a challenge (for capabilities for example) you need to use the print/sec/* urls -->
        <csrf disabled="true"/>
        <intercept-url pattern="/sec/print/**" requires-channel="https" access="isAuthenticated()"/>
        <intercept-url pattern="/**" access="permitAll()"/>
        <http-basic/>
        <anonymous/>
    </http>

    <!--
        This authentication manager is not authenticating anything.
        See https://docs.spring.io/spring-security/site/docs/5.1.3.RELEASE/reference/htmlsingle/#ns-config
        for some help
    -->
    <beans:bean name="org.springframework.security.authenticationManager"
                class="org.mapfish.print.servlet.NoOpAuthenticationManager"/>
</beans:beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy