Skip to content

Commit

Permalink
Fix #316: JavaDoc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
romanstrobl committed Aug 14, 2024
1 parent b7ed76a commit 54e4233
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
@Slf4j
public final class UserAgent {

/**
* Device information.
*/
@Data
public static class Device {
private String networkVersion;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.web.SecurityFilterChain;
Expand Down Expand Up @@ -53,13 +54,16 @@ private DigestAuthenticationFilter digestAuthenticationFilter() {

@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
return http.csrf().disable()
http
.csrf(AbstractHttpConfigurer::disable)
.exceptionHandling(e -> e.authenticationEntryPoint(authenticationEntryPoint()))
.addFilter(digestAuthenticationFilter())
.authorizeHttpRequests()
.requestMatchers("/private/**").authenticated()
.anyRequest().permitAll()
.and().build();
.authorizeHttpRequests(authorize -> authorize
.requestMatchers("/private/**").authenticated()
.anyRequest().permitAll()
);

return http.build();
}

@Bean
Expand Down

0 comments on commit 54e4233

Please sign in to comment.