Search code examples
pythondjangoauthenticationfacebook-authenticationgoogle-authentication

django how to make a proper authentication using google and facebook?


I'm starting for the first time to use in my project the facebook and google api to authenticate on my application.

I've seen a lot of librairies on the internet but I don't really know where to watch.

Is there a good and popular one to use? Or do Google and Facebook provide official one?


Solution

  • You should probably look into python-social-auth.

    It's a great framework to start with, and you'll probably find it's documentation quite useful.

    There's also an example in the repository.

    However, if you'd like something that supports local registration, besides the Facebook / Google auth, then maybe django-allauth might be a better fit.