Skip to content

Commit

Permalink
Fixed 23: csrfToken is not present in new login procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Griss committed Jan 21, 2024
1 parent 18110fb commit ad54570
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# 0.0.21

* Fixed bug in handling session configuration in new login procedure.

# 0.0.20

* Added support for new login procedure in "unixxx" subdomains.

# 0.0.14

* Fixed login issue with subdomain "intl"
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = fusion_solar_py
version = 0.0.20
version = 0.0.21
author = Johannes Griss
author_email = johannes.griss@meduniwien.ac.at
description = A simply API to the Huawei Fusion Solar web interface.
Expand Down
2 changes: 1 addition & 1 deletion src/fusion_solar_py/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def _configure_session(self):
self._session.headers["roarand"] = r.json()[
"csrfToken"
] # needed for post requests, otherwise it will return 401
except json.JSONDecodeError:
except Exception:
# this currently does not work in the new login procedure
pass

Expand Down

0 comments on commit ad54570

Please sign in to comment.