{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/18437","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/18437/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/18437/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/18437/events","html_url":"https://github.com/laravel/framework/issues/18437","id":215583901,"number":18437,"title":"[5.4] laravel echo do not authenticate - error 403 on RedisBroadcaster.php","user":{"login":"IgorDePaula","id":2833993,"avatar_url":"https://avatars0.githubusercontent.com/u/2833993?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorDePaula","html_url":"https://github.com/IgorDePaula","followers_url":"https://api.github.com/users/IgorDePaula/followers","following_url":"https://api.github.com/users/IgorDePaula/following{/other_user}","gists_url":"https://api.github.com/users/IgorDePaula/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorDePaula/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorDePaula/subscriptions","organizations_url":"https://api.github.com/users/IgorDePaula/orgs","repos_url":"https://api.github.com/users/IgorDePaula/repos","events_url":"https://api.github.com/users/IgorDePaula/events{/privacy}","received_events_url":"https://api.github.com/users/IgorDePaula/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-20T23:18:12Z","updated_at":"2017-03-22T03:45:09Z","closed_at":null,"body":"- Laravel Version: 5.4\r\n- PHP Version: 7\r\n- Database Driver & Version: mysql\r\n\r\n### Description:\r\nI'm using laravel echo server, and trying use the here, join and leave methods, on trying authenticate I received \r\n\r\n```\r\nWhoops, looks like something went wrong.\r\n\r\n1/1\r\nHttpException in Broadcaster.php line 65:\r\nin Broadcaster.php line 65\r\nat Broadcaster->verifyUserCanAccessChannel(object(Request), null) in RedisBroadcaster.php line 56\r\nat RedisBroadcaster->auth(object(Request)) in BroadcastManager.php line 308\r\nat BroadcastManager->__call('auth', array(object(Request))) in Facade.php line 221\r\nat Facade::__callStatic('auth', array(object(Request))) in BroadcastController.php line 19\r\nat BroadcastController->authenticate(object(Request))\r\nat call_user_func_array(array(object(BroadcastController), 'authenticate'), array(object(Request))) in Controller.php line 55\r\nat Controller->callAction('authenticate', array(object(Request))) in ControllerDispatcher.php line 44\r\nat ControllerDispatcher->dispatch(object(Route), object(BroadcastController), 'authenticate') in Route.php line 203\r\nat Route->runController() in Route.php line 160\r\nat Route->run() in Router.php line 559\r\nat Router->Illuminate\\Routing\\{closure}(object(Request)) in Pipeline.php line 30\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in SubstituteBindings.php line 41\r\nat SubstituteBindings->handle(object(Request), object(Closure)) in Pipeline.php line 148\r\nat Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 53\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in ShareErrorsFromSession.php line 49\r\nat ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 148\r\nat Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 53\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in StartSession.php line 64\r\nat StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 148\r\nat Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 53\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37\r\nat AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 148\r\nat Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 53\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in EncryptCookies.php line 59\r\nat EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 148\r\nat Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 53\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in Pipeline.php line 102\r\nat Pipeline->then(object(Closure)) in Router.php line 561\r\nat Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 520\r\nat Router->dispatchToRoute(object(Request)) in Router.php line 498\r\nat Router->dispatch(object(Request)) in Kernel.php line 174\r\nat Kernel->Illuminate\\Foundation\\Http\\{closure}(object(Request)) in Pipeline.php line 30\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in TransformsRequest.php line 30\r\nat TransformsRequest->handle(object(Request), object(Closure)) in Pipeline.php line 148\r\nat Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 53\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in TransformsRequest.php line 30\r\nat TransformsRequest->handle(object(Request), object(Closure)) in Pipeline.php line 148\r\nat Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 53\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in ValidatePostSize.php line 27\r\nat ValidatePostSize->handle(object(Request), object(Closure)) in Pipeline.php line 148\r\nat Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 53\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in CheckForMaintenanceMode.php line 46\r\nat CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 148\r\nat Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 53\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in Pipeline.php line 102\r\nat Pipeline->then(object(Closure)) in Kernel.php line 149\r\nat Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 116\r\nat Kernel->handle(object(Request)) in index.php line 53\r\nat require_once('/home/igor/projetos/echosuper/public/index.php') in server.php line 21\r\n```\r\n\r\n### Steps To Reproduce:\r\nI write this in bootstrap.js\r\n\r\n```\r\nwindow.Echo.join('chat.1')\r\n    .here((users) => {\r\n    console.log(users)\r\n})\r\n.joining((user) => {\r\n    console.log(user.name);\r\n})\r\n.leaving((user) => {\r\n    console.log(user.name);\r\n});\r\n```\r\n\r\nAnd rewrite the web route for\r\n\r\n```\r\nRoute::get('/', function () {\r\n    $user = Auth::user();\r\n   if($user){\r\n       event(new \\App\\Events\\PresenceUserEvent($user));\r\n   }\r\n    return view('welcome');\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/288290424","html_url":"https://github.com/laravel/framework/issues/18437#issuecomment-288290424","issue_url":"https://api.github.com/repos/laravel/framework/issues/18437","id":288290424,"user":{"login":"IgorDePaula","id":2833993,"avatar_url":"https://avatars0.githubusercontent.com/u/2833993?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorDePaula","html_url":"https://github.com/IgorDePaula","followers_url":"https://api.github.com/users/IgorDePaula/followers","following_url":"https://api.github.com/users/IgorDePaula/following{/other_user}","gists_url":"https://api.github.com/users/IgorDePaula/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorDePaula/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorDePaula/subscriptions","organizations_url":"https://api.github.com/users/IgorDePaula/orgs","repos_url":"https://api.github.com/users/IgorDePaula/repos","events_url":"https://api.github.com/users/IgorDePaula/events{/privacy}","received_events_url":"https://api.github.com/users/IgorDePaula/received_events","type":"User","site_admin":false},"created_at":"2017-03-22T03:45:09Z","updated_at":"2017-03-22T03:45:09Z","body":"I discovered that using auth from laravel he work fine, but when I use laravel like api and vue like spa, vue do not authenticate on laravel and dispatch this error (on presence and on private channels), the question is: how to autheticate vue for using presence and private channels from echo like spa?"}}
{"actor":{"display_login":"IgorDePaula"}}