Spring security – What happened if no exist request URI?
I have a question about Spring Security (I’m using Spring Security 6 for currently).
Spring Security – Authentication/Principal
I’ve been struggling with hours of research, blogs, and YouTube video to resolve this. I’m trying to implement a login, register, logout, and currentUser routes in my controllers. I set authentication successfully in the log in route, however when I try to get the same user I authenticated in the currentUser route, I can access the principal user because it’s always null. I’ve tried billions of implementations and I’m basically now begging for assistance. The code base can found at: https://github.com/abufaarooq/productiv
How to force Spring to use a deprecated class?
I have WebSecurityConfigurerAdapter
and trying to run my app I’m getting java.lang.ClassNotFoundException: org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
. But its deprecated, not deleted! Is there any way to force Spring to use deprecated classes?
How to fix this cylic dependency in Spring?
I’m setting a Spring Security configuration with JWT and I need to create a custom authentication provider and a custom user details service, but in security config class is generating a cyclic dependency beetween them…
EntityManager in AuthenticationEvent
I have a HttpBasic
authentication mechanism in my project and I added the AuthenticationSuccessEvent
handler to it. When I wire entityManager
into my AuthenticationEvents
class and persist entity, EntityManager
doesn’t do anything. I tried to use Spring data crudRepository
but nothing changed.
I replaced entityManager
and used Jdbc
. it’s work!
springboot project comes up with webSecurityConfigurerAdapter.class can’t be opened because it doesn’t exist exception
The version of springsecurity used in the project is 6.1.2, and the version of oauth2 is 2.2.5.