Hello, I want to set a token for my APIRoutes, how should I set it

65 views
Skip to first unread message

梦想与你

unread,
Nov 30, 2020, 12:00:45 PM11/30/20
to Fusio
Hello, I want to set a token for my APIRoutes, how should I set it 
asd.png 

梦想与你

unread,
Nov 30, 2020, 12:27:00 PM11/30/20
to Fusio
When I access it again after I get Token successfully, it still tells me there is no Token  
Message has been deleted

梦想与你

unread,
Nov 30, 2020, 12:36:07 PM11/30/20
to Fusio
curl -X GET -H 'authorization:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC8xNzIuMTYuOTIuMTg1Iiwic3ViIjoiNTM3M2Q2Y2EtMzYzNC01OTMxLThkZGItYjAxMjgzMDAxNmYzIiwiaWF0IjoxNj2NzU2OTM4LCJleHAiOjE2MDY3NjA1MzgsIm5hbWUiOiJ0ZXN0MDEifQ.jqzt6A_nRO7zCL8OBMZq5NtkPH94XpCdAcWlJIxePUU' 'http://localhost/index.php/testtt'
{
    "success": false,
    "title": "Internal Server Error",
    "message": "Missing authorization header"
}

Christoph Kappestein

unread,
Dec 3, 2020, 2:22:52 PM12/3/20
to Fusio
Hi,

this looks like the Authorization header is not passed to Fusio, maybe your Apache does not forward the Authorization header to Fusio? Please take a look at:

best regards
Christoph
Message has been deleted
Message has been deleted

christophe farina

unread,
Feb 11, 2022, 12:10:24 PM2/11/22
to Fusio
Hello Christoph,

It seems this readthedocs link is dead. I have not found a way to add headers to an Action (Designer is not saving the data) and any information regarding headers (for tokens specially).
Can you point me to the right place ?

Thanks for your time.

Chris

Christoph Kappestein

unread,
Feb 11, 2022, 1:17:21 PM2/11/22
to Fusio
Hi Chris,

so we have moved our documentation to a new domain s. https://docs.fusio-project.org/ this is now the place where we bundle all documentation resources regarding Fusio.
If there is a topic which is missing please let me know then we can also add this to the documentation.

best regards
Christoph
Reply all
Reply to author
Forward
0 new messages