Skip to content

Commit

Permalink
Permit all requests temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
ssylver93 committed Sep 30, 2024
1 parent 44719ea commit 19353d7
Showing 1 changed file with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,18 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti

http.csrf().disable();

http
.oauth2ResourceServer(oauth2 -> oauth2
.authenticationManagerResolver(authenticationManagerResolver())
)
.httpBasic().and()
.authorizeHttpRequests((authorize) -> authorize
.anyRequest().authenticated()
)
.exceptionHandling()
.authenticationEntryPoint(authenticationEntryPoint());
http.authorizeHttpRequests().anyRequest().permitAll();

// http
// .oauth2ResourceServer(oauth2 -> oauth2
// .authenticationManagerResolver(authenticationManagerResolver())
// )
// .httpBasic().and()
// .authorizeHttpRequests((authorize) -> authorize
// .anyRequest().authenticated()
// )
// .exceptionHandling()
// .authenticationEntryPoint(authenticationEntryPoint());

return http.build();
}
Expand Down

0 comments on commit 19353d7

Please sign in to comment.