Skip to content

Commit

Permalink
[cleanup] Fix up deprecated spring code
Browse files Browse the repository at this point in the history
  • Loading branch information
hazendaz committed Jan 21, 2024
1 parent c7c02be commit 52f485d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* MIT License
*
* Copyright (c) 2010-2023 The Waffle Project Contributors: https://github.com/Waffle/waffle/graphs/contributors
* Copyright (c) 2010-2024 The Waffle Project Contributors: https://github.com/Waffle/waffle/graphs/contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -59,9 +59,9 @@ public SecurityConfig(NegotiateSecurityFilter filter, NegotiateSecurityFilterEnt

@Bean
SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http.authorizeHttpRequests().anyRequest().authenticated().and()
.addFilterBefore(filter, BasicAuthenticationFilter.class).exceptionHandling()
.authenticationEntryPoint(entryPoint);
http.authorizeHttpRequests(requests -> requests.anyRequest().authenticated())
.addFilterBefore(filter, BasicAuthenticationFilter.class)
.exceptionHandling(handling -> handling.authenticationEntryPoint(entryPoint));
return http.build();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* MIT License
*
* Copyright (c) 2010-2023 The Waffle Project Contributors: https://github.com/Waffle/waffle/graphs/contributors
* Copyright (c) 2010-2024 The Waffle Project Contributors: https://github.com/Waffle/waffle/graphs/contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -59,9 +59,9 @@ public SecurityConfig(NegotiateSecurityFilter filter, NegotiateSecurityFilterEnt

@Bean
SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http.authorizeHttpRequests().anyRequest().authenticated().and()
.addFilterBefore(filter, BasicAuthenticationFilter.class).exceptionHandling()
.authenticationEntryPoint(entryPoint);
http.authorizeHttpRequests(requests -> requests.anyRequest().authenticated())
.addFilterBefore(filter, BasicAuthenticationFilter.class)
.exceptionHandling(handling -> handling.authenticationEntryPoint(entryPoint));
return http.build();
}

Expand Down

0 comments on commit 52f485d

Please sign in to comment.