Commit b21fdd34 authored by Dave Syer's avatar Dave Syer

Switch default security filter back on

If the user sets security.basic.enabled=false he has to remember
to @EnableWebSecurity.  Possibly we could be more helpful about the
exception, but I think this might be pilot error.

Fixes gh-568
parent 489e9736
...@@ -52,8 +52,7 @@ public class SampleSecureApplication extends WebMvcConfigurerAdapter { ...@@ -52,8 +52,7 @@ public class SampleSecureApplication extends WebMvcConfigurerAdapter {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
// Set user password to "password" for demo purposes only // Set user password to "password" for demo purposes only
new SpringApplicationBuilder(SampleSecureApplication.class).properties( new SpringApplicationBuilder(SampleSecureApplication.class).properties("security.user.password=password").run(
"security.basic.enabled=false", "security.user.password=password").run(
args); args);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment