Skip to content

Instantly share code, notes, and snippets.

@robhinds
Created February 17, 2014 14:55
Show Gist options
  • Select an option

  • Save robhinds/9052041 to your computer and use it in GitHub Desktop.

Select an option

Save robhinds/9052041 to your computer and use it in GitHub Desktop.
<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.0.xsd">
<global-method-security secured-annotations="enabled" />
<http auto-config="true" use-expressions="true">
<intercept-url pattern="/**" access="permitAll" />
<form-login login-processing-url="/loginProcess"
login-page="/"
authentication-failure-url="/?loginFailure=true"/>
<logout logout-url="/static/j_spring_security_logout"/>
</http>
<authentication-manager alias="authenticationManager">
<authentication-provider user-service-ref="userService">
<password-encoder base64="true" hash="md5">
<salt-source user-property="accountId" />
</password-encoder>
</authentication-provider>
</authentication-manager>
</beans:beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment