tugascript / nestjs-oauth

Tutorial on how to implement full oauth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nest OAuth: Adding External Providers

Intro

This is the source code for the tutorial Nest Authentication with OAuth2.0. This is the 5th and last part on a 5 part series, where we will build a production level NestJS OAuth2 service.

Contents

This contains the code for a fastify based REST Authentication API, with local and external OAuth2.0 authentication.

Local Setup

  1. Install the dependencies:
    $ yarn install
  2. Create a .env file with all the fields equal to the example.
  3. Run the app in development mode:
    $ yarn start:dev

Testing

All Unit tests:

$ yarn test

Individual Unit test:

$ yarn test service-name.service.spec.ts

Coverage:

$ yarn test:cov

E2E tests:

$ yarn test:e2e

License

The code of this tutorial is licensed under the GNU LGPLv3 - see the LICENSE file for details.

About

Tutorial on how to implement full oauth

License:GNU Lesser General Public License v3.0


Languages

Language:TypeScript 99.2%Language:JavaScript 0.5%Language:Handlebars 0.3%