Giter Club home page Giter Club logo

jwt-authentication-springboot's People

Contributors

pkini2002 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

naveen22338

jwt-authentication-springboot's Issues

Unable to authenticate JWT Web token to access content using Postman Test

I was trying to test my API using Postman in order to fetch the data at the endpoint localhost:8081/home/user. I was able to fetch the data manually with the help of the browser by authenticating myself to the route localhost:8081/login.


But while testing my API with the help of JWT I get this log in the terminal of IntelliJ

2023-09-24T12:58:48.662+05:30  INFO 6896 --- [nio-8081-exec-3] o.s.web.filter.OncePerRequestFilter      :  Header :  null
2023-09-24T12:58:48.663+05:30  INFO 6896 --- [nio-8081-exec-3] o.s.web.filter.OncePerRequestFilter      : Invalid Header Value !! 

The JWT token is getting created successfully but I am facing a problem while authenticating users using the JWT Token Authorization: Bearer <JWT Token>

I have attached the screenshot below along with the error message


Screenshot 2023-09-24 125906




Screenshot 2023-09-24 125928

Things I have tried so far

  • Recreated JWT by sending a new request
  • Skimmed through the code for any bugs
  • Opened a new HTTP Request in Postman
  • Tried creating JWT Token with a new admin user
  • Stopped the server and reran the project again

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.