Closed nwxxb closed 2 years ago
I don't understand. You mean that endpoints that require auth still work without auth? If so, why do you think that's Scribe's fault? The endpoints are handled by your app.
hi @nawwab i had the same problem, I couldn't make a request using the sanctum bearer token. How do you display the Authorization header field like yours?
Still waiting for someone to explain what exactly the problem is.
I don't understand. You mean that endpoints that require auth still work without auth? If so, why do you think that's Scribe's fault? The endpoints are handled by your app.
I am sorry for bothering you, I think the problem is from my controller not giving proper response.
you can check on config file, there is Bearer option on auth
What happened? So I use laravel sanctum and everything seems normal except when I use logout endpoints to delete user token in the database (and it works), and I can still use all endpoints that require authentication without fill the Authorization bearer input with the correct token.
Screenshots and stack traces: log on browser:
My environment:
php -v
): 8.0.10composer show laravel/framework
orcomposer show laravel/lumen-framework
): 8.47.0composer show knuckleswtf/scribe
): 3.11.1My Scribe config (minus the comments):