Skip to content
Snippets Groups Projects
Commit 43f256a3 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-7014 define registrierung path

Sub task: OZG-7225
parent 079e4302
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ public class SecurityConfiguration {
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http
.authorizeHttpRequests(authorize -> authorize
.requestMatchers("/*", "/index**", "/success", "/actuator/**", "/error", "/favicon.ico", "/fonts/**", "/webjars/**",
.requestMatchers("/registrierung","/*", "/index**", "/success", "/actuator/**", "/error", "/favicon.ico", "/fonts/**", "/webjars/**",
"/api/environment")
.permitAll()
.requestMatchers("/api", "/api/**", "/preregister", "/register").authenticated()
......
......@@ -31,7 +31,7 @@ public class FachstelleRegistrationController {
private final FachstellenProperties properties;
private final FachstelleRegistrationService registrationService;
@GetMapping(produces = "text/html; charset=utf-8")
@GetMapping(value = "/registrierung", produces = "text/html; charset=utf-8")
public String startRegistration(final Model model) {
model.addAttribute("loginUrl", properties.getLoginRedirectUrl());
return "index";
......
......@@ -38,7 +38,7 @@ class FachstelleRegistrationControllerITCase {
@Test
void whenCallIndexPage_ThenReturnPage() throws Exception {
mockMvc.perform(MockMvcRequestBuilders.get("")
mockMvc.perform(MockMvcRequestBuilders.get("/registrierung")
.header("Accept-Language", "de"))
.andExpect(status().isOk())
.andExpect(content().string(containsString("Registrierung als Fachstelle")));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment