{"action":"created","issue":{"url":"https://api.github.com/repos/fabric8io/openshift-auth-proxy/issues/5","labels_url":"https://api.github.com/repos/fabric8io/openshift-auth-proxy/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/fabric8io/openshift-auth-proxy/issues/5/comments","events_url":"https://api.github.com/repos/fabric8io/openshift-auth-proxy/issues/5/events","html_url":"https://github.com/fabric8io/openshift-auth-proxy/pull/5","id":107567500,"number":5,"title":"WIP Fix up bearer/oauth2 a bit.","user":{"login":"sosiouxme","id":29690,"avatar_url":"https://avatars.githubusercontent.com/u/29690?v=3","gravatar_id":"","url":"https://api.github.com/users/sosiouxme","html_url":"https://github.com/sosiouxme","followers_url":"https://api.github.com/users/sosiouxme/followers","following_url":"https://api.github.com/users/sosiouxme/following{/other_user}","gists_url":"https://api.github.com/users/sosiouxme/gists{/gist_id}","starred_url":"https://api.github.com/users/sosiouxme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sosiouxme/subscriptions","organizations_url":"https://api.github.com/users/sosiouxme/orgs","repos_url":"https://api.github.com/users/sosiouxme/repos","events_url":"https://api.github.com/users/sosiouxme/events{/privacy}","received_events_url":"https://api.github.com/users/sosiouxme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-21T18:08:29Z","updated_at":"2015-09-21T18:18:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/fabric8io/openshift-auth-proxy/pulls/5","html_url":"https://github.com/fabric8io/openshift-auth-proxy/pull/5","diff_url":"https://github.com/fabric8io/openshift-auth-proxy/pull/5.diff","patch_url":"https://github.com/fabric8io/openshift-auth-proxy/pull/5.patch"},"body":"Add auth token to session and ensure Authorization: Bearer header\r\nSeparate out bearer auth setup a little.\r\n\r\nEnable bearer+oauth2:\r\n  Previously only authenticated with either bearer or oauth2, not both.\r\n  With this change, oauth2 tries bearer first before falling back to oauth2.\r\n  Hat tip to http://stackoverflow.com/questions/20745296/passport-js-with-multiple-authentication-providers"},"comment":{"url":"https://api.github.com/repos/fabric8io/openshift-auth-proxy/issues/comments/142065981","html_url":"https://github.com/fabric8io/openshift-auth-proxy/pull/5#issuecomment-142065981","issue_url":"https://api.github.com/repos/fabric8io/openshift-auth-proxy/issues/5","id":142065981,"user":{"login":"sosiouxme","id":29690,"avatar_url":"https://avatars.githubusercontent.com/u/29690?v=3","gravatar_id":"","url":"https://api.github.com/users/sosiouxme","html_url":"https://github.com/sosiouxme","followers_url":"https://api.github.com/users/sosiouxme/followers","following_url":"https://api.github.com/users/sosiouxme/following{/other_user}","gists_url":"https://api.github.com/users/sosiouxme/gists{/gist_id}","starred_url":"https://api.github.com/users/sosiouxme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sosiouxme/subscriptions","organizations_url":"https://api.github.com/users/sosiouxme/orgs","repos_url":"https://api.github.com/users/sosiouxme/repos","events_url":"https://api.github.com/users/sosiouxme/events{/privacy}","received_events_url":"https://api.github.com/users/sosiouxme/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T18:18:16Z","updated_at":"2015-09-21T18:18:16Z","body":"Going to pass it back to the ES authorization piece to look up what projects the user has access to."}}