fix(auth): permitAll /api/v1/version (UI polling работает до login)
This commit is contained in:
@@ -42,6 +42,10 @@ public class SecurityConfig {
|
|||||||
.authorizeHttpRequests(auth -> {
|
.authorizeHttpRequests(auth -> {
|
||||||
auth.requestMatchers("/actuator/**").permitAll();
|
auth.requestMatchers("/actuator/**").permitAll();
|
||||||
auth.requestMatchers("/error").permitAll();
|
auth.requestMatchers("/error").permitAll();
|
||||||
|
// Build-info endpoint — открыт без auth: UI polling с update-banner
|
||||||
|
// должен работать ДО login (anonymous landing → "новая версия"
|
||||||
|
// banner появится после Keycloak callback). См. VersionController.
|
||||||
|
auth.requestMatchers("/api/v1/version").permitAll();
|
||||||
// Swagger UI + OpenAPI spec — открыты для интеграторов (Альтум, ...).
|
// Swagger UI + OpenAPI spec — открыты для интеграторов (Альтум, ...).
|
||||||
auth.requestMatchers(
|
auth.requestMatchers(
|
||||||
"/swagger-ui.html",
|
"/swagger-ui.html",
|
||||||
|
|||||||
Reference in New Issue
Block a user