Coding-Coach / coding-coach-api

62 stars 39 forks source link

Oauth Implemention for signingup with FB/Twitter and Github using Passport.js #32

Closed jagzviruz closed 5 years ago

jagzviruz commented 5 years ago

A BE implementation for allowing users to signup with social providers using passport.js.

It can potentially be replaced with Auth0. The BE will need to be hosted as https://api.codingcoach.io and the FE will need the Public client IDs from the Social Providers, and exchange the one-time use code with the BE via AJAX. (Could not yet implement it with GraphQL.) The Client Secrets will be privy to the BE alone to dissuade misuse of tokens. The Travis CI will inject the client secrets using encrypted values to the environment. More details documented.