{"action":"created","issue":{"url":"https://api.github.com/repos/evernote/evernote-sdk-mac/issues/7","labels_url":"https://api.github.com/repos/evernote/evernote-sdk-mac/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/evernote/evernote-sdk-mac/issues/7/comments","events_url":"https://api.github.com/repos/evernote/evernote-sdk-mac/issues/7/events","html_url":"https://github.com/evernote/evernote-sdk-mac/issues/7","id":48973211,"number":7,"title":"A session doesn't call CompletionHandler during authorization after the user presses the cancel button","user":{"login":"soniccat","id":147129,"avatar_url":"https://avatars.githubusercontent.com/u/147129?v=3","gravatar_id":"","url":"https://api.github.com/users/soniccat","html_url":"https://github.com/soniccat","followers_url":"https://api.github.com/users/soniccat/followers","following_url":"https://api.github.com/users/soniccat/following{/other_user}","gists_url":"https://api.github.com/users/soniccat/gists{/gist_id}","starred_url":"https://api.github.com/users/soniccat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soniccat/subscriptions","organizations_url":"https://api.github.com/users/soniccat/orgs","repos_url":"https://api.github.com/users/soniccat/repos","events_url":"https://api.github.com/users/soniccat/events{/privacy}","received_events_url":"https://api.github.com/users/soniccat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-11-16T11:14:56Z","updated_at":"2015-03-22T20:35:51Z","closed_at":null,"body":"Let's take your sample app for Mac OS. If I press cancel during authorization the completionHandler in authenticateWithWindow method have never been called.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/evernote/evernote-sdk-mac/issues/comments/84696569","html_url":"https://github.com/evernote/evernote-sdk-mac/issues/7#issuecomment-84696569","issue_url":"https://api.github.com/repos/evernote/evernote-sdk-mac/issues/7","id":84696569,"user":{"login":"soniccat","id":147129,"avatar_url":"https://avatars.githubusercontent.com/u/147129?v=3","gravatar_id":"","url":"https://api.github.com/users/soniccat","html_url":"https://github.com/soniccat","followers_url":"https://api.github.com/users/soniccat/followers","following_url":"https://api.github.com/users/soniccat/following{/other_user}","gists_url":"https://api.github.com/users/soniccat/gists{/gist_id}","starred_url":"https://api.github.com/users/soniccat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soniccat/subscriptions","organizations_url":"https://api.github.com/users/soniccat/orgs","repos_url":"https://api.github.com/users/soniccat/repos","events_url":"https://api.github.com/users/soniccat/events{/privacy}","received_events_url":"https://api.github.com/users/soniccat/received_events","type":"User","site_admin":false},"created_at":"2015-03-22T20:35:51Z","updated_at":"2015-03-22T20:35:51Z","body":"I've just uncommented this code in ENOAuthWindowController.m\r\n```\r\n- (void)cancel:(id)sender\r\n{\r\n    if (self.delegate) {\r\n        [self.delegate oauthViewControllerDidCancel:self];\r\n    }\r\n    self.delegate = nil;\r\n}\r\n```\r\nand added [self cancel:self]; at the end of ```doCancel``` method in the same file\r\n\r\n"}}