Refined the url pattern for perform_login, remove permitAll (it's not needed, works either way)
This commit is contained in:
parent
c042617936
commit
cddd15019c
|
@ -39,7 +39,7 @@ public class SecSecurityConfig extends WebSecurityConfigurerAdapter {
|
|||
.anyRequest().authenticated()
|
||||
.and()
|
||||
//.requiresChannel()
|
||||
//.antMatchers("/login*", "/perform_log*").requiresSecure()
|
||||
//.antMatchers("/login*", "/perform_login").requiresSecure()
|
||||
//.anyRequest().requiresInsecure()
|
||||
//.and()
|
||||
//.sessionManagement()
|
||||
|
|
|
@ -14,12 +14,12 @@
|
|||
<!--
|
||||
<intercept-url pattern="/anonymous*" access="isAnonymous()" requires-channel="http"/>
|
||||
<intercept-url pattern="/login*" access="permitAll" requires-channel="https"/>
|
||||
<intercept-url pattern="/perform_log*" access="permitAll" requires-channel="https"/>
|
||||
<intercept-url pattern="/perform_login" requires-channel="https"/>
|
||||
<intercept-url pattern="/**" access="isAuthenticated()" requires-channel="http"/>
|
||||
-->
|
||||
|
||||
<csrf disabled="true"/>
|
||||
|
||||
|
||||
<form-login login-page='/login.html' login-processing-url="/perform_login" default-target-url="/homepage.html" authentication-failure-url="/login.html?error=true"
|
||||
always-use-default-target="true"/>
|
||||
|
||||
|
|
Loading…
Reference in New Issue