mercredi 21 août 2019

Laravel broadcasting authentication frobidden

I'm using Laravel to build a messaging system, so that's why i'm using events broadcasting, also i'm using passport for authentication.

I changed the BroadcastServiceProvider boot() method by setting the middleware auth:api Also i'm adding Authorization : Bearer mytoken in my postman post request.

public function boot()
  {
    Broadcast::routes(['middleware' => ['auth:api']]);
    require base_path('routes/channels.php');
  } 

My problem is when i want to try to authenticate on myhost//broadcasting/auth i get the 403 forbidden response!



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2MvWhLu
via IFTTT

Aucun commentaire:

Enregistrer un commentaire