In case more than one redirect urls configured in Twitter app, a request is always redirecting to the first Url in Twitter App’s Callback Url field instead of redirecting to the one sent with the request.

While implementing “Login with Twitter” for Login we provide oauth_callback and was expecting the access code to be sent to redirected url. The url is already added as white-listed url in Callback Url of my Twitter App. I have white-listed three urls but the response is always getting redirected to the first url in list of Callback Urls. What should happen is that it should be redirecting to the url I sent as callback url in my request.
API Call: https://api.twitter.com/oauth/authenticate?oauth_token=xxxxxxxxxxxxxxxxxxxxxxxx&oauth_callback=https://xxxxxx/xxxx/TwitterOAuth

Expected: Redirect to callback url https://xxxxxx/xxxx/TwitterOAuth sent with Request. Actual: Redirecting to first Url in Callback url part of Twitter App https://yyyyyy/zzzzz/TwitterOAuth

You have to provide oauth_callback during the POST oauth/request_token API call not the GET oauth/authenticate user-agent navigation.

1 Like

I provided same at both place.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.