oauth-ruby

How do I connect to Gmail's IMAP server using oauth in Rails3?

此生再无相见时 提交于 2020-01-02 01:00:14
问题 I found the gmail_xoauth gem, which does most of what I need, but I also need to generate the oauth tokens (consumer_key and consumer_secret) from inside Rails3. I am trying to integrate Gmail's oauth integration into my site and hence cannot use the python script that the above gem refers to. I would like my site to take the user to the authentication page and extract the consumer_key/secret tokens. I am new to OAuth, so maybe there's something obvious that I am missing. UPDATE: I solved the

OAuth signature verification fails

穿精又带淫゛_ 提交于 2019-12-08 13:39:04
问题 I'm having some problem setting up an oauth provider with two-legged authentication. I'm using the oauth-plugin gem and the oauth gem, everything works fine except for my "update" requests. The signature verification process keeps failing. Here is what I'm doing: In the client, I'm using oauth = OAuth::AccessToken.new(OAuth::Consumer.new(app_key, app_secret, :site => @api_endpoint)) oauth.get("http://localhost/api/v1/users/1") oauth.post("http://localhost/api/v1/users", {:email => "testemail

How do I connect to Gmail's IMAP server using oauth in Rails3?

无人久伴 提交于 2019-12-05 01:32:00
I found the gmail_xoauth gem, which does most of what I need, but I also need to generate the oauth tokens (consumer_key and consumer_secret) from inside Rails3. I am trying to integrate Gmail's oauth integration into my site and hence cannot use the python script that the above gem refers to. I would like my site to take the user to the authentication page and extract the consumer_key/secret tokens. I am new to OAuth, so maybe there's something obvious that I am missing. UPDATE: I solved the above, and have written a blog post with the details (since its too big to fit here). http://blog.asif