1 / 25

Node.js Authentication With JWT | Node JWT Authentication Example | NodeJS Tutorial | Simplilearn

JSON Web Token (JWT) is a standard that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. In this Node Authentication with JWT video, we will use JWT in Node.js to create a token and allow user to access a protected route in a Node.js application. This allows adding security features and hides specific parts of an application until the token is verified.<br><br>This Node.js training enables you to build network applications quickly and efficiently using JavaScript. The Node.js certification training course is designed to help developers understand and build web applications with the help of JavaScript.<br><br>Node.js Training Key Features<br>1. 100% Money Back Guarantee<br>2. 36 hours of instructor-led online training<br>3. Three real-life, industry-based projects<br>4. 16 chapter-end quizzes<br>5. Master Node.js, Socket.io, Express.js with MongoDB, and SQLite<br>6. Flexibility to choose classes<br><br>Node.js Course Overview:<br>The Node. js certification training course helps you gain an in-depth knowledge of concepts such as Express.js, Node Packet Manager (NPM), shrink-wrap, NPM Vet, REST, Express.js with MongoDB, and SQLite CRUD operations. This Node.js training focuses on the essential concepts of Node.js and provides hands-on experience in building an HTTP server.<br><br>Eligibility:<br>This Node.js Certification Training is ideal for technical project managers, technical leads, full-stack web developers, quality analysts, architects, and students or aspiring professionals who wish to lead web development.<br><br>ud83dudc49Learn more at: https://bit.ly/2W6kBXN<br><br>

Simplilearn
Download Presentation

Node.js Authentication With JWT | Node JWT Authentication Example | NodeJS Tutorial | Simplilearn

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. What’s in it for you? What is JSON Web Token?

  2. What’s in it for you? What is JSON Web Token? Why JSON Web Token?

  3. Click here to watch the video

  4. What’s in it for you? What is JSON Web Token? Why JSON Web Token? Structure of a JWT

  5. What’s in it for you? What is JSON Web Token? Why JSON Web Token? Structure of a JWT JWT Use Cases

  6. What’s in it for you? What is JSON Web Token? Why JSON Web Token? Structure of a JWT DEMO JWT Use Cases

  7. What is JSON Web Token?

  8. What is JSON Web Token? • JSON Web Token (JWT) is a standard that defines a compact and self-contained way for securely transmitting information between parties as a JSON object

  9. What is JSON Web Token? • JSON Web Token (JWT) is a standard that defines a compact and self-contained way for securely transmitting information between parties as a JSON object • This information can be verified and trusted because it is digitally signed. JWTs can be signed using a secret or a public/private key pair

  10. Why JSON Web Token?

  11. Why JSON Web Token? • There are several reasons why applications use JSON Web Tokens for authentication: • JWT is a good choice to be passed in HTML and HTTP environments due to its smaller footprint when compared to other types of tokens

  12. Why JSON Web Token? • There are several reasons why applications use JSON Web Tokens for authentication: • JWT is a good choice to be passed in HTML and HTTP environments due to its smaller footprint when compared to other types of tokens • JSON Web Tokens can be signed using a shared secret and also by using public/private key pairs

  13. Why JSON Web Token? • There are several reasons why applications use JSON Web Tokens for authentication: • JWT is a good choice to be passed in HTML and HTTP environments due to its smaller footprint when compared to other types of tokens • JSON Web Tokens can be signed using a shared secret and also by using public/private key pairs • It is easier to work with JWT as JSON parsers are common in most programming languages

  14. Why JSON Web Token? • There are several reasons why applications use JSON Web Tokens for authentication: • JWT is a good choice to be passed in HTML and HTTP environments due to its smaller footprint when compared to other types of tokens • JSON Web Tokens can be signed using a shared secret and also by using public/private key pairs • It is easier to work with JWT as JSON parsers are common in most programming languages • JWT is also suitable for implementing authorization in large-scale web applications

  15. Structure of a JWT

  16. Structure of a JWT • Structure of a JSON Web Token consists of: • Header – Consists of two parts: • Type of token, i.e., JWT • Signing algorithm, example, SHA512

  17. Structure of a JWT • Structure of a JSON Web Token consists of: • Header – Consists of two parts: • Type of token, i.e., JWT • Signing algorithm, example, SHA512 • Payload – Contains the claims that provide information about a user who has been authenticated along with the other information like token expiry time

  18. Structure of a JWT • Structure of a JSON Web Token consists of: • Header – Consists of two parts: • Type of token, i.e., JWT • Signing algorithm, example, SHA512 • Payload – Contains the claims that provide information about a user who has been authenticated along with the other information like token expiry time • Signature – Final part of a token that wraps in the encoded header and payload, along with the algorithm and a secret

  19. JWT Use Cases

  20. JWT Use Cases • Some scenarios where JSON Web Tokens are useful: • Authorization - This is the most common scenario for using JWT. Once the user is logged in, each subsequent request will include the JWT, allowing the user to access routes, services, and resources that are permitted with that token.

  21. JWT Use Cases • Some scenarios where JSON Web Tokens are useful: • Authorization - This is the most common scenario for using JWT. Once the user is logged in, each subsequent request will include the JWT, allowing the user to access routes, services, and resources that are permitted with that token. • Information Exchange - JSON Web Tokens are a good way of securely transmitting information between parties

  22. DEMO

  23. DEMO DEMO

More Related