Hi

I have been attempting to implement Twitter using XAuth in an upcoming
PS3 title but I am having a lot of issues with authentication, roughly
90% of my requests fail with 401 : Failed to validate oauth signature
and token. I have already ruled out the usual suspect of dodgy
timestamp and retry using the timestamp provided in the response
headers. I have also had no issues generating matching signatures
using the test data in the Twitter XAuth documentation. Any help on
the matter would be most welcome.

Thanks
Jason


Post body:
 
x_auth_mode=client_auth&x_auth_password=XXXXXXXXX&x_auth_username=XXXXXXXXXX

Authorisation header params:
 
oauth_consumer_key=XXXXXXXXXXXXXXXXXXXXX&oauth_nonce=MTYyOTkxMDE4MDcxNDc5OTMwNDEyNDM0MzExNTY2NjExODQ3OTQ3&oauth_signature_method=HMAC-
SHA1&oauth_timestamp=1292503073&oauth_version=1.0&x_auth_mode=client_auth&x_auth_password=XXXXXXXXX&x_auth_username=XXXXXXXXXX

URL encoded authorisation header params: oauth_consumer_key
%3DXXXXXXXXXXXXXXXXXXXXX%26oauth_nonce
%3DMTYyOTkxMDE4MDcxNDc5OTMwNDEyNDM0MzExNTY2NjExODQ3OTQ3%26oauth_signature_method
%3DHMAC-SHA1%26oauth_timestamp%3D1292503073%26oauth_version
%3D1.0%26x_auth_mode%3Dclient_auth%26x_auth_password%3DXXXXXXXXX
%26x_auth_username%3DXXXXXXXXXX

Signature base string:
POST&https%3A%2F%2Fapi.twitter.com%2Foauth
%2Faccess_token&oauth_consumer_key%3DXXXXXXXXXXXXXXXXXXXXX
%26oauth_nonce
%3DMTYyOTkxMDE4MDcxNDc5OTMwNDEyNDM0MzExNTY2NjExODQ3OTQ3%26oauth_signature_method
%3DHMAC-SHA1%26oauth_timestamp%3D1292503073%26oauth_version
%3D1.0%26x_auth_mode%3Dclient_auth%26x_auth_password%3DXXXXXXXXX
%26x_auth_username%3DXXXXXXXXXX

Signature key:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&

oAuth signature:
yyUGFCB4zTWHXyb73422Qgxqbgw=

URL encoded oauth signature:
yyUGFCB4zTWHXyb73422Qgxqbgw%3D

Authorisation header:
OAuth
oauth_nonce="MTYyOTkxMDE4MDcxNDc5OTMwNDEyNDM0MzExNTY2NjExODQ3OTQ3",
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1292503073",
oauth_consumer_key="XXXXXXXXXXXXXXXXXXXXX",
oauth_signature="yyUGFCB4zTWHXyb73422Qgxqbgw%3D", oauth_version="1.0"

Post body:
x_auth_username=XXXXXXXXXX&x_auth_password=XXXXXXXXX&x_auth_mode=client_auth

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to