{"action":"created","issue":{"url":"https://api.github.com/repos/stormpath/express-stormpath/issues/173","labels_url":"https://api.github.com/repos/stormpath/express-stormpath/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/stormpath/express-stormpath/issues/173/comments","events_url":"https://api.github.com/repos/stormpath/express-stormpath/issues/173/events","html_url":"https://github.com/stormpath/express-stormpath/issues/173","id":113866658,"number":173,"title":"Discuss: loginRequired and apiAuthenticationRequired","user":{"login":"robertjd","id":132343,"avatar_url":"https://avatars.githubusercontent.com/u/132343?v=3","gravatar_id":"","url":"https://api.github.com/users/robertjd","html_url":"https://github.com/robertjd","followers_url":"https://api.github.com/users/robertjd/followers","following_url":"https://api.github.com/users/robertjd/following{/other_user}","gists_url":"https://api.github.com/users/robertjd/gists{/gist_id}","starred_url":"https://api.github.com/users/robertjd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertjd/subscriptions","organizations_url":"https://api.github.com/users/robertjd/orgs","repos_url":"https://api.github.com/users/robertjd/repos","events_url":"https://api.github.com/users/robertjd/events{/privacy}","received_events_url":"https://api.github.com/users/robertjd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-28T16:52:20Z","updated_at":"2015-11-05T00:49:35Z","closed_at":null,"body":"I feel like these middleware function's don't accurately describe what's going on under the hood.\r\n\r\nI feel that `loginRequired` would be more appropriately named `cookieAuthenticationRequired`\r\n\r\nAnd `apiAuthenticationRequired` should be broken out into `oauthAuthenticationRequired` and `basicAuthenticationRequired`\r\n\r\nFurther, I think we should create a parent middleware, `authenticate` which determines which authentication strategy to use.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/stormpath/express-stormpath/issues/comments/153917993","html_url":"https://github.com/stormpath/express-stormpath/issues/173#issuecomment-153917993","issue_url":"https://api.github.com/repos/stormpath/express-stormpath/issues/173","id":153917993,"user":{"login":"rdegges","id":90247,"avatar_url":"https://avatars.githubusercontent.com/u/90247?v=3","gravatar_id":"","url":"https://api.github.com/users/rdegges","html_url":"https://github.com/rdegges","followers_url":"https://api.github.com/users/rdegges/followers","following_url":"https://api.github.com/users/rdegges/following{/other_user}","gists_url":"https://api.github.com/users/rdegges/gists{/gist_id}","starred_url":"https://api.github.com/users/rdegges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdegges/subscriptions","organizations_url":"https://api.github.com/users/rdegges/orgs","repos_url":"https://api.github.com/users/rdegges/repos","events_url":"https://api.github.com/users/rdegges/events{/privacy}","received_events_url":"https://api.github.com/users/rdegges/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T00:49:35Z","updated_at":"2015-11-05T00:49:35Z","body":"+1 for that"}}