javascript - Using OAuth with gmail's atom feed -


i attempting use oauth access gmail's atom feed in javascript in browser (yes, know security risks of building in-browser oauth app; it's personal use, , i'm not worried me stealing own consumer key).

however, accessing atom feed giving me wrong user.

i'm calling:

oa.ajax().get("https://mail.google.com/mail/feed/atom?xoauth_requestor_id=user@domain.com", callback); 

where oa.ajax.get wraps proper oauth information (it works; can use access other google services).

i've tried calling without xoauth_requestor_id parameter.

expected result: authed user's feed

actual result: atom feed of default gmail user

anyone know why might happening? thanks.

you need pass authentication tokens, etc. using authorization header, , i'm not sure that's possible or not using ajax. because you're logged gmail, identity being used retrieve feed , thats why see own feed , not of auth'ed user.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -