kwinyyyc / NestJS-Oauth2-pkce

This is an example on NestJS application using Oauth2 pkce flow with passport-azure-ad and swagger-ui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is an example on NestJS application using Oauth2 pkce flow.

This repo uses Azure AD as example.

  • It shows how to configure and safeguard an API using Oauth pkce flow with passport
  • It shows how to configure swagger-ui to use Oauth pkce flow and decorate an API to let swagger know a bearer token is needed in Authorization header

Development

Update the variable in .env

  1. run yarn install
  2. run yarn start

About

This is an example on NestJS application using Oauth2 pkce flow with passport-azure-ad and swagger-ui


Languages

Language:TypeScript 85.4%Language:JavaScript 11.7%Language:Shell 2.9%