Comments (9)
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
from filament-api-service.
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:
from filament-api-service.
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
from filament-api-service.
I have this in my db. So as you said, my token should be 1|edf86e7c63001fd0e284b5ebb16b06a9107c725253050a62b069ba056f6dc1c5
?
But I still get the login page.
from filament-api-service.
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
from filament-api-service.
I got the same redirection to login page.
What's wrong? Did I miss any settings?
from filament-api-service.
I got the same redirection to login page.
What's wrong? Did I miss any settings?
Are you already checklist the abilities?
from filament-api-service.
I have these abilities checked
from filament-api-service.
I just needed to refresh migrations my db. Thanks for your help
from filament-api-service.
Related Issues (20)
- Add an example to use laravel sanctum
- Create a Filament Page that can generate a sanctum token
- [Bug]: Incorrect api operation when working with multi-tenant HOT 5
- [Question]: Hide token resource HOT 4
- Allow non-admin users to generate API key to access their records HOT 7
- [Bug]: How publish config pckg? HOT 1
- [Feature]: add allowedIncludes() in PaginationHandler stub HOT 2
- [Enhancement]: Allow * in ability selection / scope HOT 1
- [Bug]: Laravel 11 Support? HOT 2
- [Feature]: Swagger API docs HOT 5
- [Bug]: in some cases groupStack for api routes are not correct (fix available) HOT 1
- [Feature]: Spatie Laravel-Query-Builder follow DTO via Spatie Laravel-data HOT 2
- [Feature]: Allow multiple transformers and select transformer via X-HEADERS HOT 8
- [Bug]: Not able to get the records from api HOT 5
- [Bug]: Call to undefined method App\Models\User::createToken() HOT 2
- [Enhancement]: use $tenantModel->getRouteKeyName() instead of $tenantModel->getKeyName()
- [Question]: How do I create API for related/child resources HOT 1
- [Bug]: Tokens routes do not work in prod environment HOT 1
- [Feature]: Allow versioned API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filament-api-service.