Android Google Calendar Authorization Problem

前端 未结 1 720
独厮守ぢ
独厮守ぢ 2021-01-27 07:14

I\'m trying to make an app that accesses a user\'s Google Calendar using OAuth. I have the code in place that gets all of the proper tokens and they are saved into some preferen

相关标签:
1条回答
  • 2021-01-27 07:40

    The Authorization header needs to be "Authorization: OAuth oauth_nonce="deadbeefdeadbeef" oauth_version="1.0" ....

    See http://code.google.com/apis/accounts/docs/OAuth_ref.html#RequestToken. You can, supposedly, also but the authorization parameters in the querystring or in the body of a POST, but I have not attempted that.


    As noted in the comments below, Google is now, at least with the Calendar feed, appending a 'gsessionid=' querystring and redirecting; and so a redirect handler must create a new nonce and timestamp, and make a new signature making sure to add the gsessionid to the base signature string in the correct lexicographical order (preceding any of the oauth_ variables).

    0 讨论(0)
提交回复
热议问题