Added healthCheck to permitted URLs
This commit is contained in:
+1
-2
@@ -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 = {}
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
+1
@@ -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/**",
|
||||||
|
|||||||
Reference in New Issue
Block a user