{"action":"created","issue":{"url":"https://api.github.com/repos/gmailgem/gmail/issues/165","labels_url":"https://api.github.com/repos/gmailgem/gmail/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/gmailgem/gmail/issues/165/comments","events_url":"https://api.github.com/repos/gmailgem/gmail/issues/165/events","html_url":"https://github.com/gmailgem/gmail/issues/165","id":59403877,"number":165,"title":"Connect using xoauth","user":{"login":"maartenvanrijn","id":11258281,"avatar_url":"https://avatars.githubusercontent.com/u/11258281?v=3","gravatar_id":"","url":"https://api.github.com/users/maartenvanrijn","html_url":"https://github.com/maartenvanrijn","followers_url":"https://api.github.com/users/maartenvanrijn/followers","following_url":"https://api.github.com/users/maartenvanrijn/following{/other_user}","gists_url":"https://api.github.com/users/maartenvanrijn/gists{/gist_id}","starred_url":"https://api.github.com/users/maartenvanrijn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maartenvanrijn/subscriptions","organizations_url":"https://api.github.com/users/maartenvanrijn/orgs","repos_url":"https://api.github.com/users/maartenvanrijn/repos","events_url":"https://api.github.com/users/maartenvanrijn/events{/privacy}","received_events_url":"https://api.github.com/users/maartenvanrijn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-03-01T16:30:46Z","updated_at":"2015-12-02T03:02:05Z","closed_at":null,"body":"Hey all,\r\n\r\nI have set up oauth2.\r\nI can connect my gmail account to it / authenticate with my google account.\r\nWhen using the xoauth gem I can connect using imap.authenticate('XOAUTH2', email, access_token)\r\nHowever, I cannot connect using gmail = Gmail.connect(:xoauth, email, access_token)\r\n\r\nI don't have a 'secret', 'consumer_key', 'consumer_secret' nor do I need any when connecting using the imap.authenticate method.\r\n\r\nWhat am I not seeing / doing wrong?\r\n"},"comment":{"url":"https://api.github.com/repos/gmailgem/gmail/issues/comments/161164094","html_url":"https://github.com/gmailgem/gmail/issues/165#issuecomment-161164094","issue_url":"https://api.github.com/repos/gmailgem/gmail/issues/165","id":161164094,"user":{"login":"robins35","id":6354321,"avatar_url":"https://avatars.githubusercontent.com/u/6354321?v=3","gravatar_id":"","url":"https://api.github.com/users/robins35","html_url":"https://github.com/robins35","followers_url":"https://api.github.com/users/robins35/followers","following_url":"https://api.github.com/users/robins35/following{/other_user}","gists_url":"https://api.github.com/users/robins35/gists{/gist_id}","starred_url":"https://api.github.com/users/robins35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robins35/subscriptions","organizations_url":"https://api.github.com/users/robins35/orgs","repos_url":"https://api.github.com/users/robins35/repos","events_url":"https://api.github.com/users/robins35/events{/privacy}","received_events_url":"https://api.github.com/users/robins35/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T03:02:05Z","updated_at":"2015-12-02T03:02:05Z","body":"Still no solution here? This gem is essentially unusable until somebody fixes this. Nobody is going to use an app that makes you set access for less secure apps to true."}}