DEV Community

Cover image for Day:39 Training At Ryaz:Authentication and Authorization
mahin651
mahin651

Posted on

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.

Top comments (0)