dusterio / lumen-passport

Making Laravel Passport work with Lumen
MIT License
655 stars 139 forks source link

Routes are accessible without token #100

Closed svoby1 closed 2 years ago

svoby1 commented 5 years ago

Hello,

Lumen passport works fine, but when I call with Postman endpoint e.g: api/users with Authorization type Basic type or No Auth, etc, lumen return all users. I would like to get Unauthorized message. When I set authorization type to Bearer token, it is working fine (Unauthorized). I have set up based on the README file. The route has middleware assigned too. Please, can you tell me, what I am missing or I did not lumen passport set up correctly? Thank you.