November 2017
Intermediate to advanced
542 pages
14h 24m
English
The BasicAuthenticationFilter default constructor, the setAuthenticationManager, and the setRememberMeServices methods were removed in favor of the constructor injection:
BasicAuthenticationFilter filter = new BasicAuthenticationFilter();filter.setAuthenticationManager(authenticationManager);filter.setAuthenticationEntryPoint(entryPoint);filter.setIgnoreFailure(true);
This should be replaced with:
BasicAuthenticationFilter filter = new BasicAuthenticationFilter(authenticationManager,entryPoint);
Using this constructor automatically sets ignoreFalure to true.
Read now
Unlock full access