Skip to content

Commit

Permalink
Merge branch 'master' into stage
Browse files Browse the repository at this point in the history
  • Loading branch information
GodCipher committed May 30, 2024
2 parents b372b6c + 9302002 commit 953d5ac
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ public ApiKeyAuthFilter apiKeyAuthFilter(AuthenticationManager authenticationMan
@Bean
public SecurityFilterChain securityFilterChain(
HttpSecurity http, AuthenticationManager authenticationManager) throws Exception {
http.addFilterBefore(
apiKeyAuthFilter(authenticationManager), UsernamePasswordAuthenticationFilter.class)
.csrf(AbstractHttpConfigurer::disable)
http.csrf(AbstractHttpConfigurer::disable)
.anonymous(AbstractHttpConfigurer::disable)
.formLogin(AbstractHttpConfigurer::disable)
.authorizeHttpRequests(authorize -> authorize.anyRequest().authenticated())
Expand Down

0 comments on commit 953d5ac

Please sign in to comment.