{"action":"created","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/1995","labels_url":"https://api.github.com/repos/grafana/grafana/issues/1995/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/1995/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/1995/events","html_url":"https://github.com/grafana/grafana/issues/1995","id":76375212,"number":1995,"title":"github enterprise login_oauth , failed to get user info via api","user":{"login":"williamjoy","id":3284451,"avatar_url":"https://avatars.githubusercontent.com/u/3284451?v=3","gravatar_id":"","url":"https://api.github.com/users/williamjoy","html_url":"https://github.com/williamjoy","followers_url":"https://api.github.com/users/williamjoy/followers","following_url":"https://api.github.com/users/williamjoy/following{/other_user}","gists_url":"https://api.github.com/users/williamjoy/gists{/gist_id}","starred_url":"https://api.github.com/users/williamjoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williamjoy/subscriptions","organizations_url":"https://api.github.com/users/williamjoy/orgs","repos_url":"https://api.github.com/users/williamjoy/repos","events_url":"https://api.github.com/users/williamjoy/events{/privacy}","received_events_url":"https://api.github.com/users/williamjoy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/grafana/grafana/labels/More%20detail%20needed","name":"More detail needed","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-14T14:26:08Z","updated_at":"2015-05-15T00:36:27Z","closed_at":null,"body":"\r\nHi, I can pass oauth authentication step but after this, grafana use the token to fetch user info failed.\r\n\r\nI was unable to debug the payload sent to https://github.XXXXX.net/api/v3/user as it is encrypted, can you help on this? If debug log can be enabled it can help a lot :)\r\n```\r\n2015/05/14 14:07:44 [I] Completed / 302 Found in 71.395943ms\r\n2015/05/14 14:08:10 [I] Completed /login/github 302 Found in 1.132814ms\r\n2015/05/14 14:09:17 [I] Completed /login/github 302 Found in 746.366µs\r\n2015/05/14 14:13:28 [T] login.OAuthLogin(Got token)\r\n2015/05/14 14:13:28 [login_oauth.go:48 OAuthLogin()] [E] login.OAuthLogin(get info from github): Get https://github.XXXXX.net/api/v3/user: oauth2: token expired and refresh token is not set\r\n2015/05/14 14:13:28 [I] Completed /login/github 500 Internal Server Error in 1.880940348s\r\n```"},"comment":{"url":"https://api.github.com/repos/grafana/grafana/issues/comments/102210010","html_url":"https://github.com/grafana/grafana/issues/1995#issuecomment-102210010","issue_url":"https://api.github.com/repos/grafana/grafana/issues/1995","id":102210010,"user":{"login":"williamjoy","id":3284451,"avatar_url":"https://avatars.githubusercontent.com/u/3284451?v=3","gravatar_id":"","url":"https://api.github.com/users/williamjoy","html_url":"https://github.com/williamjoy","followers_url":"https://api.github.com/users/williamjoy/followers","following_url":"https://api.github.com/users/williamjoy/following{/other_user}","gists_url":"https://api.github.com/users/williamjoy/gists{/gist_id}","starred_url":"https://api.github.com/users/williamjoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williamjoy/subscriptions","organizations_url":"https://api.github.com/users/williamjoy/orgs","repos_url":"https://api.github.com/users/williamjoy/repos","events_url":"https://api.github.com/users/williamjoy/events{/privacy}","received_events_url":"https://api.github.com/users/williamjoy/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T00:36:27Z","updated_at":"2015-05-15T00:36:27Z","body":"Yes,  I did"}}