According to Google's OAuth documentation:

  http://code.google.com/apis/accounts/docs/OAuth.html

applications can obtain a Request Token by sending an HTTP request
to:    https://www.google.com/accounts/OAuthGetRequestToken

The HTTP request must include a parameter called "scope":

{

*(required) URL identifying the service(s) to be accessed. The resulting
token enables access to the specified service(s) only. Scopes are defined by
each Google service; see the service's documentation for the correct value.
To specify more than one scope, list each one separated with a space. This
parameter is not defined in the OAuth standards; it is a Google-specific
parameter.
*
}

I tried sending "scope=orkut" in my HTTP request:


[DEBUG] headers - >> POST /accounts/OAuthGetRequestToken HTTP/1.1
[DEBUG] headers - >> Content-Type: application/x-www-form-urlencoded
[DEBUG] wire - >> "scope=orkut&oauth_consumer_key=www.foobar.com
&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1226969987&oauth_nonce=1226969987123776000&oauth_version=1.0&oauth_signature=Iy%2FaWJ6J06JsvvCZO6RNhG7sQ70%3D"

The response from Google was:

[DEBUG] wire - << "HTTP/1.1 400 Bad Request[EOL]"
[DEBUG] wire - << "Invalid scope: orkut[\n]"


OAuthGetRequestToken doesn't recognize scope=orkut

Should I be using a different value?

Sean

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to