FINERACT-1512: Fixed no SSL configuration setup
This commit is contained in:
committed by
Aleksandar Vidakovic
parent
a5672fbe25
commit
62a5602cbd
-2
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
-2
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user