Day:39 Training At Ryaz:Authentication and Authorization

mahin651

mahin651

Posted on March 8, 2022

Day:39 Training At Ryaz:Authentication and Authorization
  • Date:8/03/2022
  • Day:Tuesday

Today, I started at about 10:30 am as I was done with more than half of tenth module and left over with some of sub modules of this module so, today I started with leftover submodules i.e Authentication and Authorization so, at starting the instructor started with. that how we can store secrets in environment variables and latter he started with setting the response header and also explained adding methods to mongoose model and with this he told and taught to encapsulate logic in mongoose db. then he started with Authorisation of middlewares. And after this he explained how to protect the routes and also told that how to get the current user and latter on he explained with logging out of user at last he told about role based authorisation as we have whole aim of creating CRUD app so, user would have certain set of authorisation like user can buy course and view it but Host would have different authorisations for eg Host would create course and assign different users to same source so, role based authorisation would play very important for future.And at last he ended up with testing
of Authorization.so,this way my day ended up by learning lot of new things.

💖 💪 🙅 🚩
mahin651
mahin651

Posted on March 8, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Introduction to NodeJS
node Introduction to NodeJS

October 23, 2024

Create a Node Server using Hono
javascript Create a Node Server using Hono

July 4, 2024

All About NPM (Node Package Manager)
javascript All About NPM (Node Package Manager)

May 25, 2024

What are HTTP headers in a REST API?
javascript What are HTTP headers in a REST API?

October 31, 2023