feat: resource-server-demo 适配 Spring Authorization Server
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user