How can I use Django OAuth Toolkit with Python Social Auth?

后端 未结 4 2048
小蘑菇
小蘑菇 2020-11-28 01:05

I\'m building an API using Django Rest Framework. Later this API is supposed to be consumed by iOS and Android devices. I want to allow my users to sign-up with oauth2-provi

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-28 01:31

    I was doing React Native with expo and Django with Django REST framework. This blogpost ended being the way I solved registration (signup) with facebook https://medium.com/@gabriel_gamil/react-native-expo-django-facebook-authentication-sign-in-83625c49da7

    tldr; use django-rest-auth https://django-rest-auth.readthedocs.io/en/latest/index.html

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

提交回复
热议问题