{"action":"opened","issue":{"url":"https://api.github.com/repos/drone/drone/issues/1435","labels_url":"https://api.github.com/repos/drone/drone/issues/1435/labels{/name}","comments_url":"https://api.github.com/repos/drone/drone/issues/1435/comments","events_url":"https://api.github.com/repos/drone/drone/issues/1435/events","html_url":"https://github.com/drone/drone/issues/1435","id":128609538,"number":1435,"title":"Github oauth","user":{"login":"Tuxity","id":31608,"avatar_url":"https://avatars.githubusercontent.com/u/31608?v=3","gravatar_id":"","url":"https://api.github.com/users/Tuxity","html_url":"https://github.com/Tuxity","followers_url":"https://api.github.com/users/Tuxity/followers","following_url":"https://api.github.com/users/Tuxity/following{/other_user}","gists_url":"https://api.github.com/users/Tuxity/gists{/gist_id}","starred_url":"https://api.github.com/users/Tuxity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tuxity/subscriptions","organizations_url":"https://api.github.com/users/Tuxity/orgs","repos_url":"https://api.github.com/users/Tuxity/repos","events_url":"https://api.github.com/users/Tuxity/events{/privacy}","received_events_url":"https://api.github.com/users/Tuxity/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-25T18:48:50Z","updated_at":"2016-01-25T18:48:50Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to setup a drone app on a server and I have a problem with the github oauth i don't understand why:\r\n\r\nIn the page http://mydomain:8000/login\r\n`\r\nWe failed to authorize your account. Please contact yoursystem administrator to check the logs and see what went wrong.\r\n`\r\n\r\n```\r\n# docker logs drone\r\n[GIN] 2016/01/25 - 18:38:40 | 303 |      73.647µs | xxx.xxx.xxx.xxx:54231 |   GET     /authorize\r\ntime=\"2016-01-25T18:38:40Z\" level=error msg=\"cannot authenticate user. Error exchanging token. received empty access token from authorization server\" \r\n[GIN] 2016/01/25 - 18:38:40 | 303 |  387.992285ms | xxx.xxx.xxx.xxx:54231 |   GET     /authorize\r\n[GIN] 2016/01/25 - 18:38:41 | 200 |      67.608µs | xxx.xxx.xxx.xxx:54231 |   GET     /login\r\n```\r\n\r\nIn github the callback url is `http://mydomain:8000/authorize`\r\n\r\n```\r\n# cat /etc/drone/dronerc \r\nREMOTE_DRIVER=github\r\nREMOTE_CONFIG=https://github.com?client_id=MYCLIENTID&client_secret=MYSECRETKEY&open=true\r\n```\r\n\r\nThank"}}