]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(ui-server): reject empty password in basic auth token validation (RFC 7613 §4.1)
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 22 Apr 2026 15:07:41 +0000 (17:07 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 22 Apr 2026 15:08:06 +0000 (17:08 +0200)
commit45624f2acecdaf37a67963a45f8ffa7816fbcfdd
tree46fcc6355b176ee0fad0a8bd5a50cc42b0c93607
parent87099e81af13f3ec514e8d69ecfd1aa09b42c224
fix(ui-server): reject empty password in basic auth token validation (RFC 7613 §4.1)

Align UIServer basic auth with RFC 7617/7613: empty passwords are now
rejected alongside the existing empty username check. Add comprehensive
unit tests for all UIServerUtils exported functions (24 tests).
src/charging-station/ui-server/UIServerUtils.ts
tests/charging-station/ui-server/UIServerUtils.test.ts [new file with mode: 0644]