Skip to content

y-pankaj/Google-And-Facebook-Authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google-And-Facebook-Authentication

This is the most basic implementation of Google and Facebook authentication using the django-allauth package

For Facebook authentication other packages were installed since it requires our website to be HTTPS This can be done through the command: pip install django-extensions Werkzeug pyOpenSSL (which is already installed in the virtual environment) Werkzeug is basically a kickass debugger when working with HTTPS

How to run this

Clone this repo and enter into virtual environment ( named venv ).

Step to activate virutal environment ( For ubuntu )

Open your terminal and change your working directory to Google-And-Facebook-Authentication and then type: source venv/bin/activate (in your terminal)

Runnning the website

Since Facebook authentication is only possible with https therefore instead of running our website through python manage.py runserver command we run our website through the command python manage.py runserver_plus --cert-file /tmp/cert.
Google authentication will also work with https so don't forget to run https debugger through the command python manage.py runserver_plus --cert-file /tmp/cert
Use localhost instead of 127.0.0.1 .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published