Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,12 @@ public AuthenticationManager authManager(UserDetailsService userDetailsService,
@Bean
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
return http.cors(Customizer.withDefaults()).csrf(AbstractHttpConfigurer::disable)
.authorizeHttpRequests(auth -> auth.requestMatchers("/authenticate", "/home", "/health/ping",
"/producers/list", "/operations/list", "/routes/list", "/error", "/apply/sync", "/apply/async",
"/api/datasets/list").permitAll().anyRequest().authenticated())
.authorizeHttpRequests(
auth -> auth
.requestMatchers("/authenticate", "/home", "/health/ping", "/producers/list",
"/operations/list", "/routes/list", "/error", "/apply/sync", "/apply/async",
"/api/datasets/list", "/assets/logo.png")
.permitAll().anyRequest().authenticated())

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only change here is the addition of the logo and the dataset list right? It seems like all the code is changed

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, only change here is addition of assets/logo.png to public list.

.oauth2ResourceServer(oauth2 -> oauth2.jwt(Customizer.withDefaults()))
.sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS)).build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ public String home() throws IOException {
var resource = new ClassPathResource("static/home.html");
return new String(resource.getInputStream().readAllBytes(), StandardCharsets.UTF_8);
}

}
Loading
Loading