Integra panel admin en seguridad y corrige carga de usuarios con JWT2
Some checks failed
Deploy Spring Boot App / build-and-deploy (push) Has been cancelled
Some checks failed
Deploy Spring Boot App / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -49,6 +49,7 @@ public class SecurityConfig {
|
||||
.requestMatchers(HttpMethod.POST, "/api/usuarios/registrar").permitAll()
|
||||
.requestMatchers("/api/usuarios/**").permitAll()
|
||||
.requestMatchers("/favicon.ico", "/error", "/static/**", "/contador/**").permitAll()
|
||||
.requestMatchers("/panel", "/panel/**").permitAll()
|
||||
.requestMatchers("/admin/**").hasAuthority("ADMIN")
|
||||
.anyRequest().authenticated()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user