Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the use of auto-config=true in spring security

what is the use of auto-config=true in spring security. In which scenario we should use this. what is the actual use of using auto-config=true ?

like image 568
basith Avatar asked Sep 04 '13 09:09

basith


2 Answers

auto-config='true' means for the intercept-url pattern the spring security provides the default login screen

like image 177
SHIVA Avatar answered Sep 18 '22 04:09

SHIVA


auto-config="true" is equivalent to:

<http>
    <form-login />
    <http-basic />
    <logout />
</http>

so it gives you a very basic security configuration to boot.

Source: https://docs.spring.io/spring-security/site/docs/3.1.x/reference/springsecurity-single.html#ns-auto-config

like image 26
soulcheck Avatar answered Sep 19 '22 04:09

soulcheck