28 lines
1.1 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"
xsi:schemaLocation="
http://www.springframework.org/schema/security
2018-07-21 19:01:22 +03:00
http://www.springframework.org/schema/security/spring-security.xsd
http://www.springframework.org/schema/beans
2018-07-21 19:01:22 +03:00
http://www.springframework.org/schema/beans/spring-beans.xsd"
2015-07-23 16:54:23 +03:00
>
2013-08-03 18:01:45 +03:00
<http create-session="stateless" use-expressions="true">
2013-07-25 01:03:26 +03:00
2018-07-21 19:01:22 +03:00
<http-basic entry-point-ref="myBasicAuthenticationEntryPoint"/>
</http>
<authentication-manager>
2013-07-25 01:03:26 +03:00
<authentication-provider>
<user-service>
2018-07-21 19:01:22 +03:00
<user name="user1" password="{noop}user1Pass" authorities="ROLE_USER"/>
2013-07-25 01:03:26 +03:00
</user-service>
</authentication-provider>
</authentication-manager>
2015-07-23 16:54:23 +03:00
<global-method-security pre-post-annotations="enabled"/>
2018-07-21 19:01:22 +03:00
<beans:bean id="myBasicAuthenticationEntryPoint" class="org.baeldung.basic.MyBasicAuthenticationEntryPoint" />
2013-08-03 18:01:45 +03:00
</beans:beans>