Hi,
I am trying to associate multiple social accounts to capture their information to a single account. I know the admin interface for Python Social Auth > User social auth allows us to do that.
But i am trying to create a page where after a user is logged in can login to his/her different social media accounts (say twitter, google, tumblr, flickr).
I know this might be a noob question as i have just started working on python few months back. Is there a way to do this? As when i try to log in to any social media account. I am forced logged out of the existing session and logged in to the social account by default.
To associate the account i have to go to admin screen then Python Social Auth > User social auth and change the user for each social account to the user it needs to associate to.
Is there a way from which i can maintain the session and override the following model to have user name from the existing session?
In
social.apps.django_app.default.models.pyclass UserSocialAuth(
models.Model,
DjangoUserMixin):
"""Social Auth association model""" user
= models.ForeignKey(USER_MODEL,
related_name='social_auth') # here i need request.user instead, when the session is maintained
.....
Is my approach correct? Or should i approach the problem in a different way?
If it is correct then, can anyone help as being the noob i am, i am sure that the only reason i am unable to do this is because of lack of skills.
Thanks and advance!!!