{"action":"created","issue":{"url":"https://api.github.com/repos/bitly/oauth2_proxy/issues/173","labels_url":"https://api.github.com/repos/bitly/oauth2_proxy/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/bitly/oauth2_proxy/issues/173/comments","events_url":"https://api.github.com/repos/bitly/oauth2_proxy/issues/173/events","html_url":"https://github.com/bitly/oauth2_proxy/pull/173","id":117618741,"number":173,"title":"Add support for returning authenticated user","user":{"login":"lsiudut","id":5573662,"avatar_url":"https://avatars.githubusercontent.com/u/5573662?v=3","gravatar_id":"","url":"https://api.github.com/users/lsiudut","html_url":"https://github.com/lsiudut","followers_url":"https://api.github.com/users/lsiudut/followers","following_url":"https://api.github.com/users/lsiudut/following{/other_user}","gists_url":"https://api.github.com/users/lsiudut/gists{/gist_id}","starred_url":"https://api.github.com/users/lsiudut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsiudut/subscriptions","organizations_url":"https://api.github.com/users/lsiudut/orgs","repos_url":"https://api.github.com/users/lsiudut/repos","events_url":"https://api.github.com/users/lsiudut/events{/privacy}","received_events_url":"https://api.github.com/users/lsiudut/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-18T16:03:29Z","updated_at":"2015-11-19T09:47:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bitly/oauth2_proxy/pulls/173","html_url":"https://github.com/bitly/oauth2_proxy/pull/173","diff_url":"https://github.com/bitly/oauth2_proxy/pull/173.diff","patch_url":"https://github.com/bitly/oauth2_proxy/pull/173.patch"},"body":"As for now, if oauth2_proxy is used only as authenticator, it doesn't return information about authenticated user. This patch introduces header X-Authenticated-User which is returned from proxy upstream. This way further user-based authorization is possible."},"comment":{"url":"https://api.github.com/repos/bitly/oauth2_proxy/issues/comments/158006070","html_url":"https://github.com/bitly/oauth2_proxy/pull/173#issuecomment-158006070","issue_url":"https://api.github.com/repos/bitly/oauth2_proxy/issues/173","id":158006070,"user":{"login":"pawelgocek","id":5902736,"avatar_url":"https://avatars.githubusercontent.com/u/5902736?v=3","gravatar_id":"","url":"https://api.github.com/users/pawelgocek","html_url":"https://github.com/pawelgocek","followers_url":"https://api.github.com/users/pawelgocek/followers","following_url":"https://api.github.com/users/pawelgocek/following{/other_user}","gists_url":"https://api.github.com/users/pawelgocek/gists{/gist_id}","starred_url":"https://api.github.com/users/pawelgocek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawelgocek/subscriptions","organizations_url":"https://api.github.com/users/pawelgocek/orgs","repos_url":"https://api.github.com/users/pawelgocek/repos","events_url":"https://api.github.com/users/pawelgocek/events{/privacy}","received_events_url":"https://api.github.com/users/pawelgocek/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T09:47:00Z","updated_at":"2015-11-19T09:47:00Z","body":"What would be good way to pass authentication data in use case of nginx auth_request directive?"}}