-
Hi -- Trying to get 3rd party authentication (sign in with Twitter) to work in V2. Seems like I need to pass parameter signin_with_twitter=True in OAuth1UserHandler.get_authorization_url, but that doesn't seem possible with client.py. in auth.py I see that if the flag is set, the endpoint switches to 'authenticate' rather than 'authorize', which apparently tells Twitter to allow a 3rd party user to use my app. Just wondering if I have this right or I'm missing something... Note the urgency is because new dev accounts are not allowed to use api V1 Great project BTW! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
OK I appear to have something working. I use OAuth1UserHandler to do the SSO flow, then create a tweepy Client with the access codes returned by get_access_token. Seems Essential level is allowed to do this. Might consider adding to docs - thanks |
Beta Was this translation helpful? Give feedback.
-
Suggestion (feature request?) add a method to client.py to get access key + secret for another user to enable signon_with_twitter If this is possible already, let's clarify docs and add an example. Here's how I do it today using a combination of Client and direct calls to auth.py:
auth_url will either go directly to our app or request authentication using Twitter if not logged in already Our callback finishes the auth1 flow (verifier_token is in the query string):
Now we can create a Client for the authenticated user:
|
Beta Was this translation helpful? Give feedback.
OK I appear to have something working. I use OAuth1UserHandler to do the SSO flow, then create a tweepy Client with the access codes returned by get_access_token. Seems Essential level is allowed to do this. Might consider adding to docs - thanks