{"action":"created","issue":{"url":"https://api.github.com/repos/rfgamaral/SlackUI/issues/3","labels_url":"https://api.github.com/repos/rfgamaral/SlackUI/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/rfgamaral/SlackUI/issues/3/comments","events_url":"https://api.github.com/repos/rfgamaral/SlackUI/issues/3/events","html_url":"https://github.com/rfgamaral/SlackUI/pull/3","id":53429925,"number":3,"title":"Improve handling of OAuth logins","user":{"login":"bartoncasey","id":3731478,"avatar_url":"https://avatars.githubusercontent.com/u/3731478?v=3","gravatar_id":"","url":"https://api.github.com/users/bartoncasey","html_url":"https://github.com/bartoncasey","followers_url":"https://api.github.com/users/bartoncasey/followers","following_url":"https://api.github.com/users/bartoncasey/following{/other_user}","gists_url":"https://api.github.com/users/bartoncasey/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoncasey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoncasey/subscriptions","organizations_url":"https://api.github.com/users/bartoncasey/orgs","repos_url":"https://api.github.com/users/bartoncasey/repos","events_url":"https://api.github.com/users/bartoncasey/events{/privacy}","received_events_url":"https://api.github.com/users/bartoncasey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-05T18:58:57Z","updated_at":"2015-01-06T01:38:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rfgamaral/SlackUI/pulls/3","html_url":"https://github.com/rfgamaral/SlackUI/pull/3","diff_url":"https://github.com/rfgamaral/SlackUI/pull/3.diff","patch_url":"https://github.com/rfgamaral/SlackUI/pull/3.patch"},"body":"My company uses Google authentication on Slack, which in turn uses our own Active Directory server. This involves a number of requests and redirections to sites outside of slack. SlackUI assumes that all auth occurs on slack.com, and so it sends those requests to the default browser and doesn't end up in an authenticated state itself.\r\n\r\nThis change just maintains a flag that indicates whether login has completed yet, and contains all handling within Chromium until it does. Currently it detects this by way of looking for \"/users.setActive\" requests, which is a bit hackish but works well."},"comment":{"url":"https://api.github.com/repos/rfgamaral/SlackUI/issues/comments/68813711","html_url":"https://github.com/rfgamaral/SlackUI/pull/3#issuecomment-68813711","issue_url":"https://api.github.com/repos/rfgamaral/SlackUI/issues/3","id":68813711,"user":{"login":"rfgamaral","id":96476,"avatar_url":"https://avatars.githubusercontent.com/u/96476?v=3","gravatar_id":"","url":"https://api.github.com/users/rfgamaral","html_url":"https://github.com/rfgamaral","followers_url":"https://api.github.com/users/rfgamaral/followers","following_url":"https://api.github.com/users/rfgamaral/following{/other_user}","gists_url":"https://api.github.com/users/rfgamaral/gists{/gist_id}","starred_url":"https://api.github.com/users/rfgamaral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfgamaral/subscriptions","organizations_url":"https://api.github.com/users/rfgamaral/orgs","repos_url":"https://api.github.com/users/rfgamaral/repos","events_url":"https://api.github.com/users/rfgamaral/events{/privacy}","received_events_url":"https://api.github.com/users/rfgamaral/received_events","type":"User","site_admin":false},"created_at":"2015-01-06T01:38:57Z","updated_at":"2015-01-06T01:38:57Z","body":"Since I cannot test this on my own (I'm on a Slack free plan without that sort of authentication) I'm gonna need your help debugging a few things if you don't mind...\r\n\r\nPlease remove (or comment out) all `if` statements and just leave the `return false` at the end of `OnBeforeBrowse` event handler. Then add the following two lines:\r\n\r\n```csharp\r\nSystem.Diagnostics.Debug.WriteLine(request.Url);\r\nSystem.Diagnostics.Debug.WriteLine(isRedirect);\r\n```\r\n\r\nDelete your cookies and cache (or make a backup of the folders for later restoration), launch SlackUI and follow the whole process until you are fully logged in. Copy and paste the output from those debug lines here.\r\n\r\nP.S: Please check the output carefully and remove any confidential information that you may find there (if any)."}}