FINERACT-1512: Fixed no SSL configuration setup

This commit is contained in:
Arnold Galovics
2022-02-25 15:34:23 +01:00
committed by Aleksandar Vidakovic
parent a5672fbe25
commit 62a5602cbd
2 changed files with 0 additions and 4 deletions
@@ -105,8 +105,6 @@ public class OAuth2SecurityConfig extends WebSecurityConfigurerAdapter {
if (serverProperties.getSsl().isEnabled()) {
http.requiresChannel(channel -> channel.antMatchers("/api/**").requiresSecure());
} else {
http.requiresChannel(channel -> channel.antMatchers("/api/**").requiresInsecure());
}
}
@@ -82,8 +82,6 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
if (serverProperties.getSsl().isEnabled()) {
http.requiresChannel(channel -> channel.antMatchers("/api/**").requiresSecure());
} else {
http.requiresChannel(channel -> channel.antMatchers("/api/**").requiresInsecure());
}
}