Commit 04b45d29 by Rubén Ramírez

feat: [ServicioSeguridad]: Añadida la parte de seguridad

parent 37f0ea99
......@@ -41,6 +41,8 @@ public class ServicioSeguridad {
.requestMatchers(HttpMethod.GET, "/usuarios/email/{email}").permitAll()
.requestMatchers(HttpMethod.POST, "/usuarios/").permitAll()
.requestMatchers(HttpMethod.PUT, "/usuarios/").authenticated()
.requestMatchers(HttpMethod.PUT, "/usuarios/{usuarioId}/perfil").authenticated()
.requestMatchers(HttpMethod.GET, "/usuarios/*").authenticated()
.requestMatchers(HttpMethod.GET, "/actuator/health").permitAll()
.requestMatchers(HttpMethod.GET, "/recursos/titulo/**").permitAll()
.requestMatchers(HttpMethod.GET, "/recursos/autor/**").permitAll()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment