I'm building my Django RESTful Framework to retrieve and post data for Mobile. I'm using djang-rest-auth (which is just all-auth with RESTful functionality; more info: http://django-rest-auth.readthedocs.io/en/latest/).
Question: Social Auth in all-auth is not clear to me. Can you finish this use case?
Use Case: Unregistered User
My guesses:
Yes, you are correct. After receiving facebook token Django will create SocialAccount
instance which include backend name (facebook in your case) and facebook id of user. This instance will be related with AUTH_USER_MODEL
by ForeignKey
so when next time user will try to login Django will find SocialAccount
by specified facebook id
and return related AUTH_USER_MODEL
instance.