Spring boot microservices security with JWT
3 microservices need to communicate(exhanging data) with the help of RestTemplate.
Generated JWT with issues when decoding
I have setup a filter that will check for the presence of a JWT token in the requests made to my app. The generation step of this JWT seems to be correct as I can generate it without issues. However, When doing the checks for this JWT I have an exception:
ERR_TOO_MANY_REDIRECTS- Spring security, always being redirected to login page no matter what
Beginner programmer here in need of your help! I am facing the following issue when running my application and trying to open it on my browser:
AuthenticationEntryPoint not handling some exceptions
I’m creating an API gateway with Spring Boot, i’m using a jwt token to validate the user session and i came up with this issue with the SpringSecurity, so here is my SecurityFilterChain
SpringBoot JWT error: incompatible types: JwtTokenFilter cannot be converted to Filter
At the moment, I have SpringBoot 3.3.0-SPANSHOT installed. But my old version is written in the code – 2.7.5. My goal is to update the latest version of SpringBoot and redo the code in a new way (except for authorization/registration). But I decided to copy the authorization/registration (JWT) from an old project that is not stable.
Spring Security returning 401 instead of 403 when authorization failed
As the title says, When I try to access the page with wrong authority (with valid JWT token), I get 401 instead of 403.
Spring Security returning 401 instead of 403 when authorization failed
As the title says, When I try to access the page with wrong authority (with valid JWT token), I get 401 instead of 403.