{"action":"created","issue":{"url":"https://api.github.com/repos/drone/drone/issues/983","labels_url":"https://api.github.com/repos/drone/drone/issues/983/labels{/name}","comments_url":"https://api.github.com/repos/drone/drone/issues/983/comments","events_url":"https://api.github.com/repos/drone/drone/issues/983/events","html_url":"https://github.com/drone/drone/issues/983","id":69325423,"number":983,"title":"HTTP 400 Error While GitHub Authentication","user":{"login":"erayalakese","id":782514,"avatar_url":"https://avatars.githubusercontent.com/u/782514?v=3","gravatar_id":"","url":"https://api.github.com/users/erayalakese","html_url":"https://github.com/erayalakese","followers_url":"https://api.github.com/users/erayalakese/followers","following_url":"https://api.github.com/users/erayalakese/following{/other_user}","gists_url":"https://api.github.com/users/erayalakese/gists{/gist_id}","starred_url":"https://api.github.com/users/erayalakese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erayalakese/subscriptions","organizations_url":"https://api.github.com/users/erayalakese/orgs","repos_url":"https://api.github.com/users/erayalakese/repos","events_url":"https://api.github.com/users/erayalakese/events{/privacy}","received_events_url":"https://api.github.com/users/erayalakese/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-18T16:38:34Z","updated_at":"2015-04-18T18:15:34Z","closed_at":"2015-04-18T18:15:34Z","body":"I'm getting error while trying to auth with GitHub. Actually this error same with Telmo's [problem](https://github.com/drone/drone/issues/679#issuecomment-68703200). But that issue closed without resolving problem.\r\n\r\n    [server]\r\n    port=\":8001\"\r\n    ...\r\n    [github]\r\n    client=\"xxx\"\r\n    secret=\"yyy\"\r\n    orgs=[]\r\n    open=true\r\n\r\n![image](https://cloud.githubusercontent.com/assets/782514/7216251/4bb27d2a-e601-11e4-971b-7da2973d0e1d.png)\r\n(of course using my real domain instead of *domain.com*)\r\n\r\nI'm following these steps and getting error :\r\n\r\n1. Browsing to http://domain.com:8001/\r\n1. Clicking to GitHub button and redirected to Github.com\r\n1. Allowing application and redirecting back to this url:\r\n    `http://domain.com:8001/api/auth/github.com?code=62e5cb142fb19ad657b0&state=I6MYHH2YJVHZWXWW44WNWM4DPOZPWCEKHH4BQHCIBQDG64ZX3AOQ%3D%3D%3D%3D`\r\n1. But it's just a blank page. Here Chrome Console logs :\r\n\r\n![image](https://cloud.githubusercontent.com/assets/782514/7216277/677c0c46-e602-11e4-8172-64663e915415.png)\r\n"},"comment":{"url":"https://api.github.com/repos/drone/drone/issues/comments/94188576","html_url":"https://github.com/drone/drone/issues/983#issuecomment-94188576","issue_url":"https://api.github.com/repos/drone/drone/issues/983","id":94188576,"user":{"login":"erayalakese","id":782514,"avatar_url":"https://avatars.githubusercontent.com/u/782514?v=3","gravatar_id":"","url":"https://api.github.com/users/erayalakese","html_url":"https://github.com/erayalakese","followers_url":"https://api.github.com/users/erayalakese/followers","following_url":"https://api.github.com/users/erayalakese/following{/other_user}","gists_url":"https://api.github.com/users/erayalakese/gists{/gist_id}","starred_url":"https://api.github.com/users/erayalakese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erayalakese/subscriptions","organizations_url":"https://api.github.com/users/erayalakese/orgs","repos_url":"https://api.github.com/users/erayalakese/repos","events_url":"https://api.github.com/users/erayalakese/events{/privacy}","received_events_url":"https://api.github.com/users/erayalakese/received_events","type":"User","site_admin":false},"created_at":"2015-04-18T18:15:34Z","updated_at":"2015-04-18T18:15:34Z","body":"it was because of empty **orgs** array in config file\r\n\r\n    orgs=[]\r\n\r\nJust commented out this line and that's all."}}