Bug #20 | ISS-0019
open
csInfo #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 over 1 year ago
- File clipboard-202404222300-iiecb.png clipboard-202404222300-iiecb.png added
- Description updated (diff)
Updated by Iván Hernández Cazorla over 1 year ago
- Status changed from New to In Progress
- % Done changed from 0 to 90
Updated by Iván Hernández Cazorla over 1 year ago
- Assignee set to Iván Hernández Cazorla
Updated by Iván Hernández Cazorla over 1 year ago
- Status changed from In Progress to Resolved
- % Done changed from 90 to 100
Updated by Iván Hernández Cazorla over 1 year 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
keyor 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_treeviewreceives 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"
