I am trying to create API and I’m wondering how I can create an endpoint for authenticating via Gmail account. Seems like django-rest-auth
supports only Facebook and Twitter.
Anyone could give me tips?
I am trying to create API and I’m wondering how I can create an endpoint for authenticating via Gmail account. Seems like django-rest-auth
supports only Facebook and Twitter.
Anyone could give me tips?
2
Answers
Try django-rest-framework-social-oauth2
I am using Django rest auth in one of my projects and it does support Google sign-in.
It supports all the social provider which
django-allauth
supports.Here is the list of the supported social provider by django-allauth and django-rest-auth
So, If you want to support any other social provider.
allauth.socialaccount.providers
.rest_auth.registration.views.SocialLoginView
.adapter_class
attribute.