Skip to content

Commit

Permalink
Allow requests for favicon.ico
Browse files Browse the repository at this point in the history
  • Loading branch information
aashaysaralkar committed Nov 2, 2018
1 parent d6cf8e0 commit aafe704
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class FormLoginSecurityConfig extends WebSecurityConfigurerAdapter {
*/
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().antMatchers("/webjars/**", "/images/**", "/security/**", "/error").permitAll().and()
http.authorizeRequests().antMatchers("/favicon.ico","/webjars/**", "/images/**", "/error").permitAll().and()
.antMatcher("/internal/**").authorizeRequests().and().formLogin().loginPage("/internal/login")
.permitAll().defaultSuccessUrl("/landing", true).and().logout().logoutUrl("/internal/logout")
.logoutSuccessUrl("/internal/login?logout").permitAll().and().csrf().disable();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class SsoSecurityConfig extends WebSecurityConfigurerAdapter {
protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable().addFilterAfter(siteMinderFilter(), RequestHeaderAuthenticationFilter.class)
.authenticationProvider(preAuthProvider()).authorizeRequests()
.antMatchers("/webjars/**", "/images/**", "/security/**", "/error","/internal/**").permitAll().and()
.antMatchers("/favicon.ico","/webjars/**", "/images/**", "/error","/internal/**").permitAll().and()
.authorizeRequests().anyRequest().authenticated().and().exceptionHandling()
.authenticationEntryPoint(new LoginUrlAuthenticationEntryPoint("/internal/login?sso"));

Expand Down

0 comments on commit aafe704

Please sign in to comment.