{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-gateway/issues/11","labels_url":"https://api.github.com/repos/strongloop/loopback-gateway/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-gateway/issues/11/comments","events_url":"https://api.github.com/repos/strongloop/loopback-gateway/issues/11/events","html_url":"https://github.com/strongloop/loopback-gateway/pull/11","id":50928142,"number":11,"title":"Feature/componentize oauth2","user":{"login":"raymondfeng","id":540892,"avatar_url":"https://avatars.githubusercontent.com/u/540892?v=3","gravatar_id":"","url":"https://api.github.com/users/raymondfeng","html_url":"https://github.com/raymondfeng","followers_url":"https://api.github.com/users/raymondfeng/followers","following_url":"https://api.github.com/users/raymondfeng/following{/other_user}","gists_url":"https://api.github.com/users/raymondfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/raymondfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymondfeng/subscriptions","organizations_url":"https://api.github.com/users/raymondfeng/orgs","repos_url":"https://api.github.com/users/raymondfeng/repos","events_url":"https://api.github.com/users/raymondfeng/events{/privacy}","received_events_url":"https://api.github.com/users/raymondfeng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"raymondfeng","id":540892,"avatar_url":"https://avatars.githubusercontent.com/u/540892?v=3","gravatar_id":"","url":"https://api.github.com/users/raymondfeng","html_url":"https://github.com/raymondfeng","followers_url":"https://api.github.com/users/raymondfeng/followers","following_url":"https://api.github.com/users/raymondfeng/following{/other_user}","gists_url":"https://api.github.com/users/raymondfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/raymondfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymondfeng/subscriptions","organizations_url":"https://api.github.com/users/raymondfeng/orgs","repos_url":"https://api.github.com/users/raymondfeng/repos","events_url":"https://api.github.com/users/raymondfeng/events{/privacy}","received_events_url":"https://api.github.com/users/raymondfeng/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2014-12-04T04:44:47Z","updated_at":"2015-01-27T10:24:57Z","closed_at":"2015-01-27T00:31:52Z","pull_request":{"url":"https://api.github.com/repos/strongloop/loopback-gateway/pulls/11","html_url":"https://github.com/strongloop/loopback-gateway/pull/11","diff_url":"https://github.com/strongloop/loopback-gateway/pull/11.diff","patch_url":"https://github.com/strongloop/loopback-gateway/pull/11.patch"},"body":"/to @bajtos or @ritch "},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-gateway/issues/comments/71622697","html_url":"https://github.com/strongloop/loopback-gateway/pull/11#issuecomment-71622697","issue_url":"https://api.github.com/repos/strongloop/loopback-gateway/issues/11","id":71622697,"user":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T10:24:57Z","updated_at":"2015-01-27T10:24:57Z","body":":+1: \r\n\r\nIt turned out it does not make sense to register complex components like oauth2 via `middleware.json`, so I implemented `component-config.json` that allows registration of components via `function(app, options)`."}}