-
Notifications
You must be signed in to change notification settings - Fork 5
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
ACCESS DENIED nach Firmwareupdate, Solar-Log Base 15 6.1.0 Build 163 - 12.04.2024 #221
Comments
Same issues here with a SL Base 100 after update to 6.1.1 Build 164 - 03.05.2024 - no sync , Access Denied and no errors without set PW but no access to most Objects. |
PW are somehow hashed in 6.1.1 Build 164 - 03.05.2024, when using the extracted hashed PW in the 2.3.0. adapter Login Succeeds... BUT still ACCESS DENIED on majority of objects |
Danke für die Meldung. Erstaunlich ist, dass das Login und die Statusprüfung vor der Datenabfrage funktionieren, der Zugriff auf die Daten dann aber nicht gewährt wird. Ich hab leider kein SL Base um den Austausch zwischen WEBUI und SL zu analysieren und herauszufinden was geändert hat. Wenn da jemand aushelfen könnte wäre das sehr hilfreich. |
Gerne, wenn ich das irgendwie bewerkstelligen kann. Was muss ich genau tun? |
Entschuldigt die verspätete Rückmeldung |
I ran into similar issues with a project for a client, and since your project has helped me figure out the api of the solarlog I thought it would be nice to help out with the new solarlog login procedure. According to their release notes they updated the login procedure as follows:
I found that with the new firmware they provide a "salt" for each user type that is used to hash the password. This can be found under key The following python code snippet shows how I retrieve the salt and use it to hash the password:
The returned cookie on a login call can be used for subsequent protected calls but in order to make it work I found that I had to add an extra header: With this setup I am able to retrieve data for objects like inverters, sensors. Hope it helps! |
Thanks a lot to @rubenlangius ! |
Just adding the extra header: 'X-SL-CSRF-PROTECTION': '1' as mentionend by @rubenlangius (THANK U!!!) in main.js after line 199 and using the extracted hashed password seems to work( no more access denied) , and has no negativ effect on solarlogs with older firmware. for now that helps me with further testing |
Nach dem letzten Update des SolarLog Base 15 auf die Version 6.1.0 Build 163, werden keine Objekte mehr aktualisiert, wenn der Login passwortgeschützt ist. Im Log wird "ACCESS DENIED" wiederholt gemeldet.
To Reproduce
Steps to reproduce the behavior:
Screenshots & Logfiles
SolarLog_DebugLog.txt
SolarLog_DebugLog_ohne_Passwort.txt
Versions:
Plattform: docker (official image - v9.1.2)
RAM: 15.5 GB
Node.js: v18.20.3
NPM: 10.8.0
The text was updated successfully, but these errors were encountered: