Skip to content

Latest commit

 

History

History
79 lines (61 loc) · 3.45 KB

README.md

File metadata and controls

79 lines (61 loc) · 3.45 KB

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Authentication && Authorization NestJS

Purpose of this application is to: Cover many key concepts of both Authentication & Authorization, including but not limited to:

  • Creating a CUSTOM Auth & Authz workflow for our application (entirely from scratch)
    • Implementing Authentication (via username/password)

    • Hash passwords

    • Implementing sign-in & sign-out

      • via username/password
      • via Google Auth
    • Protect our Routes in our application (with Authentication)

    • Create PUBLIC routes

    • Refresh tokens & how to invalidate Tokens

    • Different types of Authorization

      • Role-based access control
      • claims-based authorization
      • Policy-based authorization

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov