260 likes | 326 Views
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>
E N D
What’s in it for you? What is JSON Web Token?
What’s in it for you? What is JSON Web Token? Why JSON Web Token?
What’s in it for you? What is JSON Web Token? Why JSON Web Token? Structure of a JWT
What’s in it for you? What is JSON Web Token? Why JSON Web Token? Structure of a JWT JWT Use Cases
What’s in it for you? What is JSON Web Token? Why JSON Web Token? Structure of a JWT DEMO JWT Use Cases
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
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
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
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
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
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
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
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
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
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.
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
DEMO DEMO