Hi,
Like many people on this forum, Im stuck too with the access_token retrieval state. Im getting 401 with oauth_problem=signature invalid or sometimes oauth_problem=token_rejected
The base string for my signature is same as the one generated in the OAuth tool. My Oauth code is working fine for Twitter and LinkedIn so I dont know whats wrong with Myspace,-
My details are,-
Received oauth_token in step 2 (via callback url) is,-
C5hWFtaVQpwYUpFv3nEcmIuLxuyByRnZRVC9ty1%252BlN51%252Bj2CTltkod%252BDqTY%252BoFEH6xOSJ6tA7PSdN24VJ4xXd7tCj3yXz6ScUm8V1CRjye7ydzUSahe4fb0dO4ooTbj8
Base string:-
GET&http%3A%2F%2Fapi.myspace.com%2Faccess_token&oauth_consumer_key%3D2cee36c02aee41f3886b023adf682ad4%26oauth_nonce%3D665792416%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1326457502%26oauth_token%3DC5hWFtaVQpwYUpFv3nEcmIuLxuyByRnZRVC9ty1%2525252BlN51%2525252Bj2CTltkod%2525252BDqTY%2525252BoFEH6xOSJ6tA7PSdN24VJ4xXd7tCj3yXz6ScUm8V1CRjye7ydzUSahe4fb0dO4ooTbj8
key =
ef0692c6b2f442a9bb9944b5e07b366f8876e9014de749e0ab25652df835980f&b4313d9513f4421abefc4205e64e28a0d26e46c19f6f42f591af2c4513a3323
Request URL:-
http://api.myspace.com/access_token?oauth_consumer_key=2cee36c02aee41f3886b023adf682ad4&oauth_nonce=665792416&oauth_signature=0ueLzdGDiOc7jgoe/kfXXCuKMCg=&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1326457502&oauth_token=C5hWFtaVQpwYUpFv3nEcmIuLxuyByRnZRVC9ty1%25252BlN51%25252Bj2CTltkod%25252BDqTY%25252BoFEH6xOSJ6tA7PSdN24VJ4xXd7tCj3yXz6ScUm8V1CRjye7ydzUSahe4fb0dO4ooTbj8
In the request URL i have added the oauth_token after url encoding for once and in the base string I have added oauth_token after double url encoding.
Found that Oauth tool is doing the same. Also tried with no encoding in URL and single encoding for base string for which it returned signature_invalid.
Im stuck with this for the last 3 days, please help someone :(
Please note, Im using query based authorization (tried header based too with empty body, but got HTTP 411)
Thanks in advance