My site has regular users that use the django default User model, but for one particular functionality, I want people to be able to login using their social accounts (twitter, fb..etc) using python-social-auth without having these logins saved in the database with the user model (no accounts created, no ability to do certain normal user tasks) and with a session timeout.
I looked around for ways to do that but my little research bore no fruit. Any ideas?
Summary:
Thanks
I would try to approach this problem by using django.contrib.auth.models.Group
and django.contrib.auth.models.Permission
. Create one general group with custom permissions to your apps' functionality and add all your normal users to that.
Save accounts created by python-social-auth
in default django.contrib.auth.models.User
but create seperate Group without any permissions for them.
If necessary create some scheduled task ( either with cronjob or Celery ) which will go through users and deactivate/delete those who expired.