October 21, 2024
Chicago 12, Melborne City, USA
java

When I attempt to use the authentication service that I developed, I encounter a 401 error


I made an auth service with Java Spring using JWT, and when I try to register a user from Postman it gave me a 401 error saying that I’m not authorized to use the API.

Error when I try to use the API register method:

Error when I try to use the API register method

I try to use the password that Spring gave me in the authorization module from Postman (I don’t really know which is the user) and it didn’t work.

Using the credentials that Spring gave me:

Using the credentials that Spring gave me

I deduce that is something related with the password that Spring gave me.

Output when I start the auth service:

Output when I start the auth service

Controller register method:

Controller register method



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video