2020 */
2121package eu .openanalytics .containerproxy .security ;
2222
23- import java .util .List ;
24-
25- import javax .inject .Inject ;
26-
23+ import eu .openanalytics .containerproxy .auth .IAuthenticationBackend ;
24+ import eu .openanalytics .containerproxy .auth .UserLogoutHandler ;
2725import org .springframework .beans .factory .annotation .Autowired ;
2826import org .springframework .boot .autoconfigure .condition .ConditionalOnExpression ;
29- import org .springframework .boot .autoconfigure .condition .ConditionalOnProperty ;
3027import org .springframework .context .annotation .Bean ;
3128import org .springframework .context .annotation .Configuration ;
3229import org .springframework .core .env .Environment ;
4340import org .springframework .security .web .header .writers .StaticHeadersWriter ;
4441import org .springframework .security .web .util .matcher .AntPathRequestMatcher ;
4542
46- import eu . openanalytics . containerproxy . auth . IAuthenticationBackend ;
47- import eu . openanalytics . containerproxy . auth . UserLogoutHandler ;
43+ import javax . inject . Inject ;
44+ import java . util . List ;
4845
4946@ Configuration
5047@ EnableWebSecurity
@@ -61,7 +58,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
6158
6259 @ Inject
6360 private Environment environment ;
64-
61+
6562 @ Autowired (required =false )
6663 private List <ICustomSecurityConfig > customConfigs ;
6764
@@ -128,8 +125,8 @@ protected void configure(HttpSecurity http) throws Exception {
128125
129126 if (auth .hasAuthorization ()) {
130127 http .authorizeRequests ().antMatchers (
131- "/login" , "/signin/**" , "/auth-error" ,
132- "/favicon.ico" , "/css/**" , "/img/**" , "/js/**" , "/assets/**" , "/webjars/**" ).permitAll ();
128+ "/login" , "/signin/**" , "/auth-error" , "/app-access-denied" , "/logout-success " ,
129+ "/favicon.ico" , "/css/**" , "/img/**" , "/js/**" , "/assets/**" , "/webjars/**" ).permitAll ();
133130 http
134131 .formLogin ()
135132 .loginPage ("/login" )
0 commit comments