Skip to content

Commit

Permalink
keine ahnung
Browse files Browse the repository at this point in the history
  • Loading branch information
GodCipher committed May 29, 2024
1 parent d31cf95 commit d72a576
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ public SecurityFilterChain securityFilterChain(
.addFilterAfter(apiKeyAuthFilter(authenticationManager), FilterChainProxy.class)
.authorizeHttpRequests(authorize -> authorize.anyRequest().authenticated())
.sessionManagement(
session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS));
session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
.exceptionHandling(
exception ->
exception.authenticationEntryPoint(
(request, response, authException) -> {
// ignored
}));

log.debug("API key: {}", apiKey);
log.debug("API key header: {}", apiKeyHeader);
Expand Down

0 comments on commit d72a576

Please sign in to comment.