Hola gente! Cómo están? Estoy teniendo el siguiente problema, cuando voy a mandar datos con Insomnia: Error 401 Unauthorized. En IntelliJ cuando le doy run a la api me sale esto en la consola: " 2023-06-02T18:08:49.167+02:00 WARN 38916 --- [ restartedMain] .s.s.UserDetailsServiceAutoConfiguration :
Using generated security password: 00e54355-a3f0-418f-b7e3-88839a4453b6
This generated password is for development use only. Your security configuration must be updated before running your application in production.
2023-06-02T18:08:49.291+02:00 INFO 38916 --- [ restartedMain] o.s.s.web.DefaultSecurityFilterChain : Will secure any request with [org.springframework.security.web.session.DisableEncodeUrlFilter@3e2d9c5a, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@6dc6d077, org.springframework.security.web.context.SecurityContextHolderFilter@2f030ea8, org.springframework.security.web.header.HeaderWriterFilter@4c5e2c3d, org.springframework.security.web.csrf.CsrfFilter@5a214066, org.springframework.security.web.authentication.logout.LogoutFilter@47a491df, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@2d27b308, org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter@1882affc, org.springframework.security.web.authentication.ui.DefaultLogoutPageGeneratingFilter@2a23b275, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@7664ab9b, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@43f92660, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@286b45d2, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@244a319f, org.springframework.security.web.access.ExceptionTranslationFilter@2d552257, org.springframework.security.web.access.intercept.AuthorizationFilter@6a4b3eec] 2023-06-02T18:08:49.334+02:00 INFO 38916 --- [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729 2023-06-02T18:08:49.370+02:00 INFO 38916 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path '' 2023-06-02T18:08:49.388+02:00 INFO 38916 --- [ restartedMain] med.voll.api.ApiApplication : Started ApiApplication in 4.775 seconds (process running for 5.215) 2023-06-02T18:19:32.010+02:00 INFO 38916 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet' 2023-06-02T18:19:32.011+02:00 INFO 38916 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' 2023-06-02T18:19:32.011+02:00 INFO 38916 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 0 ms "
Alguien podrá ayudarme a corregir este tema de seguridad? No sé bien dónde debo realizar estas configuraciones y cómo deben ser. Muchas gracias!