|
|
@@ -13,8 +13,6 @@ import org.springframework.security.config.annotation.web.configurers.Expression |
|
|
|
import org.springframework.security.config.annotation.web.configurers.oauth2.server.authorization.OAuth2AuthorizationServerConfigurer; |
|
|
|
import org.springframework.security.config.annotation.web.configurers.oauth2.server.resource.OAuth2ResourceServerConfigurer; |
|
|
|
import org.springframework.security.core.userdetails.UserDetailsService; |
|
|
|
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; |
|
|
|
import org.springframework.security.crypto.password.PasswordEncoder; |
|
|
|
import org.springframework.security.oauth2.core.oidc.OidcUserInfo; |
|
|
|
import org.springframework.security.oauth2.server.authorization.config.ProviderSettings; |
|
|
|
import org.springframework.security.oauth2.server.authorization.oidc.authentication.OidcUserInfoAuthenticationContext; |
|
|
@@ -81,9 +79,8 @@ public class SecurityConfig { |
|
|
|
SecurityFilterChain defaultSecurityFilterChain(HttpSecurity http) throws Exception { |
|
|
|
http.csrf().disable() |
|
|
|
.authorizeHttpRequests((authorize) -> authorize |
|
|
|
|
|
|
|
.antMatchers("/getHealth").permitAll() |
|
|
|
.antMatchers("/user/create").permitAll() |
|
|
|
//.antMatchers("/user/create").permitAll() |
|
|
|
.anyRequest().authenticated() |
|
|
|
) |
|
|
|
// Form login handles the redirect to the login page from the |