Back to Browse

Adding Auth Login Endpoint for JWT Token Creation

7.6K views
Dec 28, 2021
35:22

In this lesson we will create a RESTful endpoint that will allow us to pass in our username and password, and it will validate that the credentials are correct, and then generate a Json Web Token (JWT) for us to use in the front end. The point of this JWT is that it will be stored on the client-side (in our user's browser) and the client will pass this JWT to the server side whenever they're trying to access any restricted endpoints. The benefit to using a JWT is that it is "stateless", meaning that if you have thousands of servers running micro-services, a JWT will work for every single request... whereas a solution that stores state on the server side won't be able to leverage multiple servers easily (without introducing some kind of extra overhead to solve this problem). Other Important Links: --------------------------- Check out our Bootcamp: https://www.coderscampus.com/bootcamp Subscribe to the Channel: https://bit.ly/3lKjxp0 #springsecurity #jwt

Download

1 formats

Video Formats

360pmp478.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Adding Auth Login Endpoint for JWT Token Creation | NatokHD