When it comes to brand new instruction, and that is authentication.
Well, for us to take control about our applications, we need to implement security authentication
and authorization.
There is differences between authentication and authorization.
When we say authentication is simply means that allowing a user to login into your application with
the right login credentials.
And when we say authorization is a process of allowing a user after logging in to take any action in
your application.
But guys, authentication is really, really, really hard.
But the good news is that I'm going to break it down for you to understand the process involved when
implementing authentication and authorization.
Because of that, I have break down authentication section into eight parts.
So let's get started.
Let's see.
Types of authentication that we are going to learn.
The first one is we will implement what is called low level authentication.
And this is the basic way of implementing authentication without a hassle.
So if you understand the first level, that is low level authentication, where we are going to allow
a user to login into application with plain username and password.
And after that, we will go ahead and implement what is called low level authentication.
But instead we are going to add one thing in the mix called encrypted.
So for this one, we are going to improve the first type of authentication by implementing what is called
encrypting the user password.
Then after that, we go ahead and implement what is called cookie based authentication.
So you can see that we are moving from top to bottom whilst we are increasing the security level.
So after cookie based authentication, then we go ahead and implement what is called session based authentication.
So among these for from top to bottom, you can see how we are increasing the security level when it
comes to authentication.
And after learning what is called session based authentication, then we will go ahead and learn with
session based authentication, with database meaning that when a user logs in, we are going to keep
the session inside our MongoDB inside of the memory of our application.
Then the next authentication type that we are going to implement is called token based authentication
by using what is called JSON web token, that is JWT for short.
And this is the kind of authentication we use nowadays.
For my Fullstack applications, I used to keybase authentication.
Then we are going to create application where we can log in from the client side.
And finally, we are going to build a complete authentication system.
All right.
With that being said in this video, let's see how authentication works.