api-server-nodejs icon indicating copy to clipboard operation
api-server-nodejs copied to clipboard

Evolution 2# - OAuth for GitHub

Open app-generator opened this issue 3 years ago • 3 comments

Hello @FullStackkDev!

The API should be enhanced to support OAuth via Github.

Requirements:

  • the backward compatibility assured:
    • JWT Login
    • existing API signature
  • The library used in NodeJS should be actively supported and alive
    • Please propose a few options here

Ty!

app-generator avatar Nov 28 '22 10:11 app-generator

Here is a short list with OAuth libs for Node:

https://oauth.net/code/nodejs/

  • openid-client. OpenID Certified™ Client implementation for Node.js
  • oauth4webapi. OpenID Certified™ OAuth 2 / OpenID Connect for Web Platform API JavaScript runtimes
  • Grant 200+ OAuth providers for Express, Koa, Hapi, Fastify, AWS Lambda, Azure, Google Cloud, Vercel
  • PassportJS
  • OAuth2-client-js

app-generator avatar Nov 28 '22 14:11 app-generator

Hello @FullStackkDev

Please provide more information about the implementation (super slim) and also a short step-by-step documentation how a new user can use this feature.

The information should provide:

  • env variables (if needed)
  • the OAuth callback URL
  • the steps that the user should follow to configure GitHub

The above documentation should provide only the super minimal information.

Ty!

app-generator avatar Nov 29 '22 17:11 app-generator

@app-generator Here is the documentation file for GitHub OAuth https://github.com/app-generator/api-server-nodejs/blob/step4/support-for-react/GITHUB_AUTH.md

FullStackkDev avatar Nov 30 '22 10:11 FullStackkDev