Django. How to know from where users authorized. - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: Django. How to know from where users authorized. (/thread-2870.html) |
Django. How to know from where users authorized. - Mike Ru - Apr-16-2017 I'm using social-auth-django for a registration through social networks. I need to knew from where an user authorized. Twitter or Google or Facebook etc. How can I do it! RE: Django. How to know from where users authorized. - nilamo - Apr-18-2017 https://github.com/python-social-auth/social-app-django/blob/master/social_django/views.py#L42 Wrote:def _do_login(backend, user, social_user): user.backend = '{0}.{1}'.format(backend.__module__, backend.__class__.__name__) login(backend.strategy.request, user) What's the user.backend look like? Could that be what you're looking for? |