Code Monkey home page Code Monkey logo

Comments (9)

rupadana avatar rupadana commented on September 7, 2024 1

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.

sambeauprak avatar sambeauprak commented on September 7, 2024

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:
image

from filament-api-service.

rupadana avatar rupadana commented on September 7, 2024

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: image

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.

sambeauprak avatar sambeauprak commented on September 7, 2024

image
I have this in my db. So as you said, my token should be 1|edf86e7c63001fd0e284b5ebb16b06a9107c725253050a62b069ba056f6dc1c5 ?

But I still get the login page.

image

from filament-api-service.

rupadana avatar rupadana commented on September 7, 2024

image I have this in my db. So as you said, my token should be 1|edf86e7c63001fd0e284b5ebb16b06a9107c725253050a62b069ba056f6dc1c5 ?

But I still get the login page.

image

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.

sambeauprak avatar sambeauprak commented on September 7, 2024

I got the same redirection to login page.

image

What's wrong? Did I miss any settings?

from filament-api-service.

rupadana avatar rupadana commented on September 7, 2024

I got the same redirection to login page.

image

What's wrong? Did I miss any settings?

Are you already checklist the abilities?

from filament-api-service.

sambeauprak avatar sambeauprak commented on September 7, 2024

image

I have these abilities checked

from filament-api-service.

sambeauprak avatar sambeauprak commented on September 7, 2024

I just needed to refresh migrations my db. Thanks for your help

from filament-api-service.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.