-
Notifications
You must be signed in to change notification settings - Fork 594
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
loginKey does not work in MeshCtrl.js #6328
Comments
I will check tomorrow, but i think you are setting the url incorrectly? |
ok ive just checked and it works correctly here?
are you sure you are hexing the |
ok ive just looked, are you sure you are sending all the values that you need? |
OOO just spotted a bug too can you spot it? |
Signed-off-by: si458 <simonsmith5521@gmail.com>
ok ive fixed the meshctrl passing loginkey and key=xxx incorrect at the same time |
Loginkey is an encoded cookie. This command works flawlessly without the
key parameter when the key is not required in MC.
…On Fri, Aug 16, 2024, 10:41 AM Simon Smith ***@***.***> wrote:
ok ive just checked and it works correctly here?
node meshctrl.js --url wss://mc.myserver.com:443?key=a1b2c3d4 --loginuser simon --loginpass mysecretpassword --token 123456 ListDevices
are you sure you are hexing the loginkey correctly in your url?
how did you generate it/where did you get it from?
—
Reply to this email directly, view it on GitHub
<#6328 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXXKRCMZEEXJ37LALPOCQLZRYFS7AVCNFSM6AAAAABMS7NJ2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJTGYZTQNZQGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@geekasso ah right ok no worries! in that case its the bug i mensioned above! |
Describe the bug
Hello. I am having an issue when using a loginKey in config.json and performing a remote MeshCtrl.js command, the MC server does not provide a valid response. Browsing via the URL and adding the key works as expected.
Not sure if it's for specific actions in MeshCtrl.js, but ListDevices is not working in my test. If the ?key=[key] is not used, the response is immediate, however when the ?key=[key] is used, the response takes a long time. Neither produce a valid response, but the timing implies that the ?key parameter is causing MC to not handle it properly.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
?key param should return the devices in json, as it does before enabling the loginKey in config.json.
Server Software (please complete the following information):
Client Device (please complete the following information):
Your config.json file
The text was updated successfully, but these errors were encountered: