feat: resource-server-demo 适配 Spring Authorization Server

This commit is contained in:
zlt2000
2024-03-05 17:52:07 +08:00
parent fdb97c4c3a
commit ed1fdb06d5
2 changed files with 4 additions and 5 deletions
@@ -45,7 +45,7 @@ public class DefaultResourceServerConf {
private AccessDeniedHandler oAuth2AccessDeniedHandler;
@Bean
public SecurityFilterChain springSecurityFilterChain(HttpSecurity http) throws Exception {
public SecurityFilterChain defaultSecurityFilterChain(HttpSecurity http) throws Exception {
http.authorizeHttpRequests(authorizeRequests -> {
AuthorizeHttpRequestsConfigurer<HttpSecurity>.AuthorizedUrl authorizedUrl = authorizeRequests
.requestMatchers(HttpMethod.OPTIONS).permitAll()