Fortunately, there is a very simple solution. When calling api.get_authorization_url
, simply specify signin_with_twitter=True
as a keyword argument. Your call should look like this:
api.get_authorization_url(signin_with_twitter=True)
This causes Tweepy to use the 'authenticationendpoint you mentioned, instead of the
authorization` endpoint.