500 rerror on https://api.twitter.com/oauth/authenticate?token=

oauth
api-access
twitter4j

#1

We are using satellizer to integrate with the twitter, which is just UI.

We are making first call to twitter which returns response like:

OAuthToken{token=‘J1ZhjgAAAAAAiquQAAABUQJZfeA’, tokenSecret=‘INjDrL3CH95goAi1dE5o1D0T7SZZjZaO’, secretKeySpec=null}

But then twitter gives 500 when it is trying to authenticate it. the url which goes is:

https://api.twitter.com/oauth/authenticate?token=J1ZhjgAAAAAAiquQAAABUQJZfeA&tokenSecret=INjDrL3CH95goAi1dE5o1D0T7SZZjZaO&authenticationURL=https%3A%2F%2Fapi.twitter.com%2Foauth%2Fauthenticate%3Foauth_token%3DJ1ZhjgAAAAAAiquQAAABUQJZfeA&authorizationURL=https%3A%2F%2Fapi.twitter.com%2Foauth%2Fauthorize%3Foauth_token%3DJ1ZhjgAAAAAAiquQAAABUQJZfeA

It is passing these request params as a request:
token:
J1ZhjgAAAAAAiquQAAABUQJZfeA

tokenSecret:
INjDrL3CH95goAi1dE5o1D0T7SZZjZaO

authenticationURL:
https://api.twitter.com/oauth/authenticate?oauth_token=J1ZhjgAAAAAAiquQAAABUQJZfeA

authorizationURL:
https://api.twitter.com/oauth/authorize?oauth_token=J1ZhjgAAAAAAiquQAAABUQJZfeA
Which are quite valid.

If you go to
https://dev.twitter.com/oauth/tools/signature-generator/9087888

And at bottom enter url into request uri, you will get valid response.

https://api.twitter.com/oauth/authenticate?token=3wLauwAAAAAAiquQAAABUQTcBRc&tokenSecret=QpOkZ0DREr6uXNKTC18Yxr7daYV7Ak3S&author

If u know anything would be g8.