Closed sambeauprak closed 8 months ago
this package used laravel-sanctum
enabled by default, when you did'nt adding Authorization
header, you will directed to the login page.
Because of you did'nt use Laravel Auth, Laravel did'nt found the login page. You need modify route name on App\Http\Middleware\Authenticate
to filament.admin.auth.login
to generate a token you can read this
Hi there, I did what you said and it's okay for the login page. So I added a Bearer Token through Authorization
header, but it still redirect me to the login page.
I used Postman for that. Here's the request URL: https://topizyv2.dev/api/admin/customers Here's the Authorization tab config:
Hi there, I did what you said and it's okay for the login page. So I added a Bearer Token through
Authorization
header, but it still redirect me to the login page.I used Postman for that. Here's the request URL: https://topizyv2.dev/api/admin/customers Here's the Authorization tab config:
i think you didn't copy all of the token showed cause its begin with "1|" the number is an ID of the token
I have this in my db. So as you said, my token should be 1|edf86e7c63001fd0e284b5ebb16b06a9107c725253050a62b069ba056f6dc1c5
?
But I still get the login page.
I have this in my db. So as you said, my token should be
1|edf86e7c63001fd0e284b5ebb16b06a9107c725253050a62b069ba056f6dc1c5
?But I still get the login page.
In your database it is encrypted token, you need to copy the token from notification after you created token.
you need to back up it, because its only showed one time
I got the same redirection to login page.
What's wrong? Did I miss any settings?
I got the same redirection to login page.
What's wrong? Did I miss any settings?
Are you already checklist the abilities?
I have these abilities checked
I just needed to refresh migrations my db. Thanks for your help
What happened?
I get the following error message : Route [login] not defined.
How to reproduce the bug
When I access to a route: e.g: api/admin/customers/1 I get an error message which implies the route login not defined.
Package Version
3.0
PHP Version
8.2.12
Laravel Version
10.35.0
Which operating systems does with happen with?
Windows
Notes
No response