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
Branches
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ public class SecurityConfiguration { ...@@ -61,7 +61,7 @@ public class SecurityConfiguration {
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http http
.authorizeHttpRequests(authorize -> authorize .authorizeHttpRequests(authorize -> authorize
.requestMatchers("/*", "/index**", "/success", "/actuator/**", "/error", "/favicon.ico", "/fonts/**", "/webjars/**", .requestMatchers("/registrierung","/*", "/index**", "/success", "/actuator/**", "/error", "/favicon.ico", "/fonts/**", "/webjars/**",
"/api/environment") "/api/environment")
.permitAll() .permitAll()
.requestMatchers("/api", "/api/**", "/preregister", "/register").authenticated() .requestMatchers("/api", "/api/**", "/preregister", "/register").authenticated()
......
...@@ -31,7 +31,7 @@ public class FachstelleRegistrationController { ...@@ -31,7 +31,7 @@ public class FachstelleRegistrationController {
private final FachstellenProperties properties; private final FachstellenProperties properties;
private final FachstelleRegistrationService registrationService; 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) { public String startRegistration(final Model model) {
model.addAttribute("loginUrl", properties.getLoginRedirectUrl()); model.addAttribute("loginUrl", properties.getLoginRedirectUrl());
return "index"; return "index";
......
...@@ -38,7 +38,7 @@ class FachstelleRegistrationControllerITCase { ...@@ -38,7 +38,7 @@ class FachstelleRegistrationControllerITCase {
@Test @Test
void whenCallIndexPage_ThenReturnPage() throws Exception { void whenCallIndexPage_ThenReturnPage() throws Exception {
mockMvc.perform(MockMvcRequestBuilders.get("") mockMvc.perform(MockMvcRequestBuilders.get("/registrierung")
.header("Accept-Language", "de")) .header("Accept-Language", "de"))
.andExpect(status().isOk()) .andExpect(status().isOk())
.andExpect(content().string(containsString("Registrierung als Fachstelle"))); .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