[SOLVED] Â Setting up Rest API Web Service using API Key - Access denied |
8/8/2020 3:11:29 AM |
PHPRunner General questions | |
A
acpan author
Hi all!
|
|
![]() |
Admin 8/8/2020 |
Try that CURL command and it will work. |
M
|
MikeT 8/9/2020 |
Can anyone confirm that it works as expected in the newest build of phpr? I also tried it with the cars template, removed event code that could interfer, and I also get {"error":"Access denied","success":false} with Api_key method. (Basic Auth works). |
A
|
acpan author 8/9/2020 |
Can anyone confirm that it works as expected in the newest build of phpr? I also tried it with the cars template, removed event code that could interfer, and I also get {"error":"Access denied","success":false} with Api_key method. (Basic Auth works). I think I tried every possible curl/postman method for a GET request, but might still miss something, that's why I'm asking before complaining too much;-)
|
A
|
acpan author 8/10/2020 |
Try that CURL command and it will work. Also in Postman instead of "apikey" use "X-Auth-Token" and it should also work.
|
![]() |
Admin 8/10/2020 |
Show me your CURL command and the results it yields. |
A
|
acpan author 8/10/2020 |
Show me your CURL command and the results it yields.
|
![]() |
Admin 8/10/2020 |
C:\tmp>curl -H "X-Auth-Token: admin" "http://localhost:8086/api/v1.php?table=todousers&action=list"
|
A
|
acpan author 8/11/2020 |
Maybe you are using an old version of PHPRunner?
|
M
|
MikeT 8/11/2020 |
I tried it again with a new project, starting from scratch, and there it works with API token. |
![]() |
Admin 8/11/2020 |
Yes, it might be something related to the template. It is always a smart idea to start from scratch. |
F
|
fdiazp 8/11/2020 |
I have a project that don´t use templates and don´t work APIKey security get the same error, I´m working in 35571 version (64 bits) |
![]() |
Admin 8/11/2020 |
We have found that currently REST API authorization via API key doesn't work with password encryption/hashing enabled. We will fix it shortly. |
A
|
acpan author 8/11/2020 |
We have found that currently REST API authorization via API key doesn't work with password encryption/hashing enabled. We will fix it shortly.
|
A
|
acpan author 8/26/2020 |
Here it is: https://asprunner.com/forums/topic/27703-august-24-2020-phprunner-asprunernet-asprunnerpro-104-maintenance-release/
|