se añadio el endpoint /api/usuarios/confirmado para que no necesite auth
Some checks failed
Deploy Spring Boot App / build-and-deploy (push) Has been cancelled

This commit is contained in:
2026-03-04 14:54:26 -04:00
parent 6927c6b7e6
commit f3e99fa830

View File

@@ -42,6 +42,7 @@ public class SecurityConfig {
.authorizeHttpRequests(auth -> auth .authorizeHttpRequests(auth -> auth
.requestMatchers("/ws/**").permitAll() // WebSocket .requestMatchers("/ws/**").permitAll() // WebSocket
.requestMatchers("/auth/**").permitAll() .requestMatchers("/auth/**").permitAll()
.requestMatchers("/api/usuarios/confirmado/**").permitAll()
.requestMatchers("/favicon.ico", "/error", "/static/**", "/contador/**", "/api/**").permitAll() .requestMatchers("/favicon.ico", "/error", "/static/**", "/contador/**", "/api/**").permitAll()
.requestMatchers("/admin/**").hasRole("ADMIN") .requestMatchers("/admin/**").hasRole("ADMIN")
.anyRequest().authenticated() .anyRequest().authenticated()