Reactsecurity.io – Advanced React Security Patterns
English | Size: 5.21 GB
Category: Tutorial
Learn how to protect your React apps for the real world. I spent years working in React code bases, where security is the main concern. I also spent almost three years working at Auth0, where I learned a lot about authentication and security. I would like to teach you everything that I know about how to protect your React applications so that you do not have to spend all this time sorting it out.
Should I use JSON web tokens or cookies and sessions? How to protect your data? What happens if users check my React code in a browser?
How about when I make an application using Gatsby or Next?
What about serverless functions?
How about GraphQL ??
What if I want to use a third-party authentication provider ?!
WHAT SHOULD I DO?!?
I will teach you everything I know about React application security.
What is in the box?
Update JSON Web Tokens
Applications that use JSON web tokens most likely need some way to update these tokens after they expire. Since the token’s lifetime should be short, and since we do not want users to have to return to our applications every time the token expires, we need a way to get a new token on demand. The way to do this is to update the tokens.
In this module, we will consider what update tokens are, how they are used to receive new access tokens, where they should be stored, and much more.
Switching to cookies and sessions
Typically, React applications use JSON web tokens for authentication. This mechanism can be especially useful when we need access to data from the APIs that are served in domains other than the domain in which our React application runs. However, JSON web tokens have some problems. These problems are due to the fact that JWTs are often used to replace a traditional user session, but that’s not what they are for.
In this module, we’ll show you how to fully protect our React application and express the API with cookies and sessions. We are also talking about the benefits of this approach.
Third Party Authentication Providers
There is a saying in development: “Never untwist your own crypto.” Why not? Cryptography is complex, subtle, easy to make mistakes, and there are people who are smarter than you and me who have already decided this.
The same can be said of authentication in general. There are third-party authentication providers, such as Auth0, which make it very easy to integrate authentication into our applications, and are also really secure, because security is the main focus of their business.
In this module, we will start by talking about the value that Auth0 offers, and why you should consider using it. Then we transfer all parts of the authentication and authorization of our application to Auth0.
Authentication and Authorization for GraphQL
Authentication and authorization for GraphQL-based applications is almost the same as if we were using JSON endpoints. We can either use JSON web tokens by sending them to the server in the authorization header, or send cookies and rely on sessions on the backend.
There are, however, some important differences. The biggest changes take place on the server, where we need new concepts for authentication and authorization before our data is allowed and sent back to the client.
In this module, we are working with a version of the application based entirely on GraphQL. We will see how to send JWT to the server from Apollo on the external interface, and then how to authorize requests on the internal interface using two methods: resolver authentication checks and user schema directives.
Authentication and Authorization for GatsbyJS
The Gatsby application is actually just a React application, so it’s tempting to think that authentication and authorization can be done exactly as it would in a more “vanilla” React application. In fact, this is basically the same, but there are some important differences due to how Gatsby creates files for distribution.
In this module, we will apply authentication to the marketing page of our application and see how to work with the relevant parts so that everything works smoothly when creating and deploying the Gatsby website.
Authentication and authorization for Next.js
Next.js applications have a special place when it comes to how to apply authentication and authorization. How should we think of a “logged-in user” in the server-side rendering world? How can we serve resources for the application and populate authentication parts at runtime?
In this module, we will create an Orbit application on Next.js and see various ways to apply authentication and authorization to it.
Serverless authentication
Serverless functions give us the ability to run code on demand and pay only for what we use. Serverless is an attractive option because it is cheaper and much more scalable than traditional server deployments. If we want to have authenticated functions without a server, we need to consider a few things. How do we manage logins and registrations? How do we authorize requests? Where do we keep secrets for checking tokens?
In this module, we will move on to serverless functions for our API and see how to fully authenticate requests to them. We will use Netlify features, which themselves are based on AWS Lambda.
Interview with React Experts
I sat down to chat with people in the React community to find out their authenticity and security for React applications. They share tips, tricks, and lessons learned from their experience creating secure React applications.
Pro Package
Full source code for all modules
All 7 modules
Update JSON Web Tokens
Use of cookies and sessions
Third Party Authentication Providers
Authentication and Authorization for GraphQL
Authentication and Authorization for Gatsby Applications
Authentication and authorization for Next.js applications
Authentication and authorization for serverless functions
10 interviews with React experts, including: Kent C. Dodds, Ben Awad, Eve Porcello, Jason Lengstorf, Kadi Kraman, Dave Ceddia, Chris Sevilleja, Sam Julien, and Christian Nwamba
DURATION 09:20:13
SOURCE reactsecurity.io (RYAN CHENKIE)
NUMBER OF LESSONS 100 videos
DATE ADDED 07/06/2020
TONGUE English
DOWNLOAD:
https://rapidgator.net/file/b987acb949ac69dd2971e1a7060bb5b8/reactsecurity.io_-_Advanced_React_Security_Patterns.part1.rar.html
https://rapidgator.net/file/4780ce720a8eaf9b64da572ab217e1ae/reactsecurity.io_-_Advanced_React_Security_Patterns.part2.rar.html
https://rapidgator.net/file/7f4e397fc6ea3d538c9a1615c7d88c75/reactsecurity.io_-_Advanced_React_Security_Patterns.part3.rar.html
https://rapidgator.net/file/b89aa83697a0bbfae98f38a937a0dc54/reactsecurity.io_-_Advanced_React_Security_Patterns.part4.rar.html
https://rapidgator.net/file/2d8c3467212563bb3f61520058a31056/reactsecurity.io_-_Advanced_React_Security_Patterns.part5.rar.html
https://rapidgator.net/file/a118f7d49de2bee659d47671aee65cc2/reactsecurity.io_-_Advanced_React_Security_Patterns.part6.rar.html
https://rapidgator.net/file/6a438387b5a523fdc005842a5c71cd2b/reactsecurity.io_-_Advanced_React_Security_Patterns.part7.rar.html
https://rapidgator.net/file/9e81fec7a684a8e5d438d9388b888db6/reactsecurity.io_-_Advanced_React_Security_Patterns.part8.rar.html
https://nitroflare.com/view/554FE721E5051C7/reactsecurity.io_-_Advanced_React_Security_Patterns.part1.rar
https://nitroflare.com/view/0F31C37DAB5F374/reactsecurity.io_-_Advanced_React_Security_Patterns.part2.rar
https://nitroflare.com/view/968B58EE316B527/reactsecurity.io_-_Advanced_React_Security_Patterns.part3.rar
https://nitroflare.com/view/11408CE06ED41DB/reactsecurity.io_-_Advanced_React_Security_Patterns.part4.rar
https://nitroflare.com/view/3426D28341A3D21/reactsecurity.io_-_Advanced_React_Security_Patterns.part5.rar
https://nitroflare.com/view/62184665181BF8C/reactsecurity.io_-_Advanced_React_Security_Patterns.part6.rar
https://nitroflare.com/view/057C9F39153077C/reactsecurity.io_-_Advanced_React_Security_Patterns.part7.rar
https://nitroflare.com/view/9C95FF44EF43FF8/reactsecurity.io_-_Advanced_React_Security_Patterns.part8.rar