Bug #20 | ISS-0019
opencsInfo #ISS-0012: Bugs
Can not force authentication, collides with Tree
100%
Description
The treeview using key is not working because the check_if_login_required
function refuses the access based in keys, and then the user is anonymous.
This has to be fixed in order to allow setting the instance as "login required"
Files
Derive | Clone item |
Updated by Txinto Vaz 7 months ago
- File clipboard-202404222300-iiecb.png clipboard-202404222300-iiecb.png added
- Description updated (diff)
Updated by Iván Hernández Cazorla 7 months ago
- Status changed from Resolved to Feedback
Please, review the PR in the cosmosys_rm
repository: https://github.com/cosmoBots/cosmosys_rm/pull/20.
The branch is fix/403_when_login_required
and it is in my fork, so I edited the Docker entrypoint to point to it instead of the one in the cosmoBots organization.
At this moment the fix branch is deployed on Coruja instance: https://coruja.csys.cosmobots.eu
The instance is configured as login required. When you access, go to the "Tree" view and play with it! Then you can also test to make a request in the same browser or even using CURL:
In browser
- Access to https://coruja.csys.cosmobots.eu/cosmosys/testingproject/treeview.json?key=
- You should a blank page if you access without
key
or withkey=
(parameter with empty string). - If you go to your account, get the API key and paste after
=
, you will see the same JSON thatcosmosys_treeview
receives to build the "Tree" view.
CURL
Just run the next command and test as above (without key
, with key
but empty and with key
:
curl --request GET "https://coruja.csys.cosmobots.eu/cosmosys/testingproject/treeview.json"