Login for multiple Twitter apps

32 views
Skip to first unread message

Wales Data Technology, LLC

unread,
Feb 13, 2019, 10:36:18 AM2/13/19
to django-allauth
Hello!

I am building a site for a social media management business. I have a twitter bot that needs to be authorized by the client so it can do all kind of management tasks on their account. I can't stack all of my clients on a single app because if I have 1,000 clients, then I will immediately run out of the daily rate limits set by twitter. So, I instead need to create 100 twitter apps and then stack 5-10 clients on each app. So I need to dynamically produce a "Login with Twitter" button that uses the correct keys for that app.

So, the process is:
1. Client expresses interest in the service.
2. I do something to associate the client with a particular twitter app from my twitter developer account.
3. I send the client a link to my django app that shows them a 'login with twitter' button that uses the particular app I associated with them.

I haven't figured out how to do this, because the provider_login_url is associated with the provider, not with the SocialApplication.

Can I get a provider_login_url that is associated with a particular SocialApplication?

Thank you!
Reply all
Reply to author
Forward
0 new messages