Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding user session check to exec.cgi #31

Closed
wants to merge 1 commit into from
Closed

Adding user session check to exec.cgi #31

wants to merge 1 commit into from

Conversation

psytester
Copy link
Contributor

@psytester psytester commented May 14, 2019

This change adds a first version of user session check and validation.
Login in WegUI to get a valid sessionID to be able to call
/addons/xmlapi/exec.cgi?sid=....

ToDo: User authorisation level check (Admin, User or Guest) needs to be
added.
Currently the guest level can use the script, too.
But better a valid login session than nothing.

Disclaimer: I just added the login session check as a kind of proof of
concept. I did not check any negative impact to existing tools or
scripts.

Both TCL scripts were copied from
https://github.com/rdmtc/RedMatic/tree/master/addon_files/redmatic/lib/

This change adds a first version of user session check and validation.
Login in WegUI to get a valid sessionID to be able to call
```/addons/xmlapi/exec.cgi?sid=....```

ToDo: User authorisation level check (Admin, User or Guest) needs to be
added.
Currently the guest level can use the script, too.
But better a valid login session than nothing.

Disclaimer: I just added the login session check as a kind of proof of
concept. I did not check any negative impact to existing tools or
scripts.

Both TCL scripts were copied from
rdmtc/RedMatic/blob/master/addon_files/redmatic/lib/
@psytester
Copy link
Contributor Author

First PR to issue #29

@jens-maus
Copy link
Member

This PR is obsolete since within the upcoming v2 version of XML-API a token-based authentication scheme had been added which should prevent these kind of issues.

@jens-maus jens-maus closed this Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants