{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/13113","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/13113/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/13113/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/13113/events","html_url":"https://github.com/laravel/framework/pull/13113","id":147457125,"number":13113,"title":"[5.3] Add authentication check to the Authorize middleware","user":{"login":"JosephSilber","id":1403741,"avatar_url":"https://avatars.githubusercontent.com/u/1403741?v=3","gravatar_id":"","url":"https://api.github.com/users/JosephSilber","html_url":"https://github.com/JosephSilber","followers_url":"https://api.github.com/users/JosephSilber/followers","following_url":"https://api.github.com/users/JosephSilber/following{/other_user}","gists_url":"https://api.github.com/users/JosephSilber/gists{/gist_id}","starred_url":"https://api.github.com/users/JosephSilber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosephSilber/subscriptions","organizations_url":"https://api.github.com/users/JosephSilber/orgs","repos_url":"https://api.github.com/users/JosephSilber/repos","events_url":"https://api.github.com/users/JosephSilber/events{/privacy}","received_events_url":"https://api.github.com/users/JosephSilber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-11T15:01:05Z","updated_at":"2016-04-20T04:39:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/13113","html_url":"https://github.com/laravel/framework/pull/13113","diff_url":"https://github.com/laravel/framework/pull/13113.diff","patch_url":"https://github.com/laravel/framework/pull/13113.patch"},"body":"If you're using the default auth, there's now no need to use the `auth` middleware too.\r\n\r\nBefore this change, if you forgo the `auth` middleware, the `Authorize` middleware would incorrectly return a `403` instead of a `401`."},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/212253635","html_url":"https://github.com/laravel/framework/pull/13113#issuecomment-212253635","issue_url":"https://api.github.com/repos/laravel/framework/issues/13113","id":212253635,"user":{"login":"mark86092","id":1908007,"avatar_url":"https://avatars.githubusercontent.com/u/1908007?v=3","gravatar_id":"","url":"https://api.github.com/users/mark86092","html_url":"https://github.com/mark86092","followers_url":"https://api.github.com/users/mark86092/followers","following_url":"https://api.github.com/users/mark86092/following{/other_user}","gists_url":"https://api.github.com/users/mark86092/gists{/gist_id}","starred_url":"https://api.github.com/users/mark86092/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark86092/subscriptions","organizations_url":"https://api.github.com/users/mark86092/orgs","repos_url":"https://api.github.com/users/mark86092/repos","events_url":"https://api.github.com/users/mark86092/events{/privacy}","received_events_url":"https://api.github.com/users/mark86092/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T04:39:57Z","updated_at":"2016-04-20T04:39:57Z","body":"Could it possible to throw a unauthenticated exception, and let the error handler to handle it?\r\nFor example, we have ValidationException, and AuthorizationException."}}