codeuino / codebadge-backend

GNU General Public License v3.0
15 stars 23 forks source link

User Authentication via GitHub #15

Closed shivamluthra closed 4 years ago

shivamluthra commented 4 years ago

What you will need to know?

Javascript - Beginner to Intermediate level (How to use requests and response using AJAX/Fetch asynchronously)

Authenticate users via their GitHub Account login

Any user to the CodeBadge platform should be able to login/signup via his/her GitHub account directly. This shall be the only method to log in the user since we need to track user's GitHub stats anyways. You'll need to create a single page for signup/login which will redirect to Github's API and ask for user's access via his GitHub account and authorize CodeBadge as an OAuth app linked to his GitHub account.

Requirements

Steps to Follow

Acceptance Criteria

Rejection Criteria

Expected Outcome

A single page for signup/login which says Login/Register Via GitHub and logs in the user if he's already signed in to CodeBadge platform before or registers him as a new user if he's coming there for the first time. User data can be stored in a local database(preferably, a local MongoDB instance) for now.

How to excel fast in the community

Resources & References (Where to Start)

You'll need to go through the docs of Authorizing OAuth apps via GitHub.

Extras

Just follow the readme whenever you are stuck . Visit Codeuino's Website in case of any doubts.