Relative Content

Tag Archive for springrestjwt

JWT authentication fails

I’m developing a REST service with Spring security, the backend generates the JWT without any problems, I checked all parts of the code, everything seems ok, but when POSTMAN sends a GET request to an endpoint protected by authentication, despite the token is valid, it receives the STATUS CODE: 403 (forbidden).

Spring REST Service with spring security JWT

I’m trying to setup a REST Service with JWT authentication (I confess that many parts of the authentication process have been copied from some tutorials), it seems the code is ok, Spring compiles without errors, but when test the login service, sending a POST, SpringToolSuite intercepts the following error: