Skip to content

The beginning of OAuth2 authentification with NestJS

Notifications You must be signed in to change notification settings

ykoh42/42OAuth-NestJS

 
 

Repository files navigation

42oauth example with NestJS

Nest Logo

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

Passport-42 example with NestJS

Instructions

To install this example on your computer, clone the repository and install dependencies.

$ git clone https://github.com/ykoh42/42OAuth-NestJS.git
$ cd 42OAuth-NestJS
$ npm install

Register an app on 42 intra and set the redirect URI to http://localhost:3000/login/42/return.

Copy .env.sample to .env and edit CLIENT_ID and CLIENT_SECRET info.

Start the server.

$ npm run start

Open a web browser and navigate to http://localhost:3000/ to see the example in action.

42 API List

이 문서의 저작권

이 문서는 CC0 (Public Domain, 크리에이티브 커먼즈 권리 포기)로 누구나 영리적인 목적을 포함한 어떤 목적으로든 그리고 어떤 방법으로든 마음대로 사용할 수 있습니다.

Languages

  • TypeScript 73.5%
  • EJS 17.7%
  • JavaScript 6.2%
  • CSS 2.6%