]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(auth): address audit findings in OCPP auth abstraction layer
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 21 Mar 2026 17:39:09 +0000 (18:39 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 21 Mar 2026 17:39:09 +0000 (18:39 +0100)
commit382bd67c4afeed8d49dcb18d70123ad2048e9996
tree53215311b11187840486d3a202fc687e0d56563a
parentd79e71887c9c171fa7b311afa2550db4f473c239
fix(auth): address audit findings in OCPP auth abstraction layer

- Read AuthCtrlr.LocalAuthorizeOffline variable instead of hardcoding true
- Delegate testConnectivity() to actual adapter availability checks
- Remove duplicate mapOCPP20AuthStatus(), use canonical mapOCPP20AuthorizationStatus
- Map strategies by name instead of fragile priority numbers
- Make connectorId truly optional in OCPP20AuthAdapter.authorizeRemote()
- Use ES2022 Error cause chain in AuthenticationError
src/charging-station/ocpp/auth/adapters/OCPP20AuthAdapter.ts
src/charging-station/ocpp/auth/services/OCPPAuthServiceImpl.ts
src/charging-station/ocpp/auth/types/AuthTypes.ts