Skip to content
Snippets Groups Projects
Commit 1c70c8f3 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4717 changed environment path

parent d616e1e6
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ import lombok.RequiredArgsConstructor;
@RequestMapping(FrontendEnvironmentController.PATH)
public class FrontendEnvironmentController {
static final String PATH = "/api/environment"; // NOSONAR
static final String PATH = "/api/frontendEnvironment"; // NOSONAR
private final ProductionProperties environmentProperties;
......
......@@ -53,7 +53,7 @@ public class SecurityConfiguration {
http.exceptionHandling(eh -> eh.authenticationEntryPoint(authenticationEntryPoint));
http.authorizeHttpRequests(requests -> requests
.requestMatchers(HttpMethod.GET, "/api/environment").permitAll()
.requestMatchers(HttpMethod.GET, "/api/frontendEnvironment").permitAll()
.requestMatchers("/api").authenticated()
.requestMatchers("/api/**").authenticated()
.requestMatchers("/actuator").permitAll()
......
......@@ -67,7 +67,7 @@ class SecurityConfigurationITCase {
@SneakyThrows
@ParameterizedTest
@ValueSource(strings = {
"/api/environment",
"/api/frontendEnvironment",
"/configserver/name/profile"
})
void shouldAllow(String path) {
......@@ -145,7 +145,7 @@ class SecurityConfigurationITCase {
@SneakyThrows
@ParameterizedTest
@ValueSource(strings = {
"/api/environment",
"/api/frontendEnvironment",
"/configserver/name/profile",
"/api", "/api/configuration", "/api/configuration/param",
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment