Hi,

from OAuth 1.0a it is mandatory to either pass the callback URL in the
RequestToken request, or have it preconfigured. As you don't have a
domain registered with Google, you have to pass the callback in this
request.

I got this working with the Java library.

regards,
Willem Jan

On Jul 2, 8:42 pm, Inter Galactic <[email protected]> wrote:
> Hi Folks,
>
> I am hoping to get some help here regarding oAuth access to gmail. Has
> anyone had any success with it?
>
> I have just about exhausted all options to get the first call to get
> the token. I keep running into signature_invalid. Here's my scenario:
>
> 1. I am testing locally on my laptop
> 2. I don't have a domain registered with google
> 3. Hence, I use HMAC-SHA1 to sign my request
> 4. I use consumer_key=anonymous and consumer_secret=anonymous (which
> is valid)
> 5. I use callback =oob (which is valid)
>
> Here's my base string:
> GET&
> https%3A%2F%2Fwww.google.com%2Faccounts%2FOAuthGetRequestToken&
> oauth_callback%3Doob%26
> oauth_consumer_key%3Danonymous%26
> oauth_nonce%3D3911534%26
> oauth_signature_method%3DHMAC-SHA1%26
> oauth_timestamp%3D1278095269%26
> oauth_version%3D1.0%26
> scope%3Dhttps%253A%252F%252Fmail.google.com%252Fmail%252Ffeed%252Fatom
>
> Here's the base string from oAuth Playground:
> GET&
> https%3A%2F%2Fwww.google.com%2Faccounts%2FOAuthGetRequestToken&
> oauth_callback%3Dhttp%253A%252F%252Fgooglecodesamples.com
> %252Foauth_playground%252Findex.php%26
> oauth_consumer_key%3Danonymous%26
> oauth_nonce%3Df9cf45f62d8a6b672ab76379fee19f2b%26
> oauth_signature_method%3DHMAC-SHA1%26
> oauth_timestamp%3D1278095394%26
> oauth_version%3D1.0%26
> scope%3Dhttps%253A%252F%252Fmail.google.com%252Fmail%252Ffeed%252Fatom
>
> They are identical except the callback parameter and nonce. The latter
> is generated by a method in a class I downloaded from google code -
> oAuthBase.cs
>
> By the way, I am using c#, asp.net
>
> Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"OAuth" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/oauth?hl=en.

Reply via email to