The Terasology Foundation

User Authentication via GitHub

Reference: Github Issue #15 (Make sure to read the complete task details on GitHub)

What you will need to know?

HTML, CSS, 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.

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.

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.

Task tags

  • codeuino

Students who completed this task

Torpedo

Task type

  • code Code
close

2019