Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 2.16 KB

File metadata and controls

58 lines (40 loc) · 2.16 KB

Social Account Authentication Using Django-allauth

This is a simple web application where users can sign in with their social accounts like Google, Facebook, GitHub.

Documentation

https://django-allauth.readthedocs.io/en/latest/

Providers Used

The below OAuth2 providers are used in this application

  • Google
  • Facebook
  • GitHub

Run Locally

Clone the project

  git clone https://github.com/Shivakumar1V/Social-Account-Signin-Using-Django-allauth

Install dependencies

  pip install -r requirements.txt

Create a superuser with the below command

  python manage.py createsuperuser

Start the server

  python manage.py runserver

Get Client id and Secret key

Get your Client id and Secret key by registering app on the providers website by following the below docs

Add Social Application

For adding Social Application follow the below steps

  • Open the browser and visit http://localhost:8000/admin/socialaccount/socialapp/add/
  • Login with admin Username and Password
  • Select Provider, type provider name in the Name section, enter your Client id and Secret key, add localhost:8000 to Chosen sites and click on save - continue this with all providers(Google, Facebook, GitHub)

Yeah! Now the application is ready to use
Go to http://localhost:8000 and enjoy the application