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
Post a Comment