r/javahelp • u/Afraid-Tower619 • Aug 08 '25
Giving 401 unauthorized access error
https://github.com/Suryanshtiwari2005/JwtAuthDemo/tree/master
I am trying to learn Authentication using SpringBoot but i am currently stuck when i call
http://localhost:8080/tasks
it's giving 401 unauthorized error i have tried using ai's help couldn't solve it if somebody could provide me a solution for this error it would be really appriciated
1
Upvotes
View all comments
Show parent comment
1
u/JavaWithSomeJava Intermediate Brewer Aug 09 '25
The issue is that you’re not authenticating before trying to access a protected route. You can either whitelist that path or provide a token