How to save the request body after reading it in the ServerAuthenticationConverter?

Guys! maybe someone faced the problem of getting the request body.. I am trying to friend Spring WebFlux + Security: I use SecurityConfig @EnableWebFluxSecurity @EnableReactiveMethodSecurity public …

url to specific page with spring security

I have an Spring Boot application. I need to send emails that contain a direct url to a specific page of the system, something like: Please, on click on the following link to accept the offer: http://…

Error accessing field by reflection for persistent property [model.Credentials#email] on @EmbeddedID

I’ve been experiencing problems implementing the Authorities on my spring boot application, and after digging a little I realised that maybe the association between my Credentials and Authorities …

Spring Security: redirect to single page app in case of 401

When I type into browser any route of my React app, for example: http://localhost/login, the request hits my server, and my server responds with 401 Unauthorized. When request is not an authorized …

Spring Boot HttpSecurity – @PreAuthorize – How to set AuthenticationFilter?

I am currently developing a API Authorization. So basically i have an filter JwtAuthorizationFilter. And in my RestController i want to annotate the request that should be filtered via @PreAuthorize(&…

Spring-Boot-Security: Custom Authenticator

I am starting with Spring-Boot and have an application with WebSecurity. Its working fine, I have InMemory Authentication with static user/passwords. Now I have no need for DB or LDAP or … @Override …

Multiple WebSecurityConfigurerAdapters: JWT authentication and form login in spring security

I have spring boot app with thymeleaf. I am using spring security formLogin method for security and now I need to add JWT for only some APIs. @EnableWebSecurity public class SecurityConfigurations { …

Spring boot security in kotlin with users and roles

I have to work on an application that old interns started. The backend is made with spring-boot and using Kotlin, which I’m very new to both. The backed is a RESTful API and I need to implement an …

i can’t figure out which component of the spring is doing this

10.5. AuthenticationManager AuthenticationManager is the API that defines how Spring Security‚Äôs Filters perform authentication. The Authentication that is returned is then set on the …

spring boot security not configured properly

I am new to Spring boot and Spring boot security. However, using the existing sample codes, I had written a code which worked correctly. In my design, I had a separate page for my login, called login….