Added healthCheck to permitted URLs

This commit is contained in:
2023-07-16 19:52:36 +02:00
parent 7139d8c331
commit 3b8ca17fd0
2 changed files with 2 additions and 2 deletions
@@ -21,8 +21,7 @@ import org.springframework.context.annotation.Configuration;
flows = @OAuthFlows( flows = @OAuthFlows(
implicit = @OAuthFlow( implicit = @OAuthFlow(
authorizationUrl = "https://id.2martens.de/realms/wahlrecht/protocol/openid-connect/auth", authorizationUrl = "https://id.2martens.de/realms/wahlrecht/protocol/openid-connect/auth",
tokenUrl = "https://id.2martens.de/realms/wahlrecht/protocol/openid-connect/token", tokenUrl = "https://id.2martens.de/realms/wahlrecht/protocol/openid-connect/token"
scopes = {}
) )
) )
) )
@@ -30,6 +30,7 @@ import org.springframework.security.web.SecurityFilterChain;
public class WebSecurityConfiguration { public class WebSecurityConfiguration {
private static final Collection<String> PERMITTED_PATHS = List.of( private static final Collection<String> PERMITTED_PATHS = List.of(
"/wahlrecht/healthCheck",
"/wahlrecht/v1/getToken", "/wahlrecht/v1/getToken",
"/wahlrecht/v1/doc/**", "/wahlrecht/v1/doc/**",
"/wahlrecht/v1/api-docs/**", "/wahlrecht/v1/api-docs/**",