]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(auth): trigger post-authorize by default when DisablePostAuthorize not configured
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 31 Mar 2026 20:32:02 +0000 (22:32 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 31 Mar 2026 20:32:02 +0000 (22:32 +0200)
commitaa6aae57f59e8d89bb4f50d15ba0445162b616f6
tree687cbd4280c3dfd3f29c16b571ddd5ccaf4813ba
parentbb603d61ed4c156b4d637da1d1f2c20ee8895d13
fix(auth): trigger post-authorize by default when DisablePostAuthorize not configured

Change shouldTriggerPostAuthorize from === false to !== true so that
non-Accepted local/cached tokens correctly trigger remote re-auth
when disablePostAuthorize is undefined (not configured). Previously,
undefined === false evaluated to false, silently skipping re-auth.

Also flatten redundant double try/catch in OCPP20AuthAdapter.
src/charging-station/ocpp/auth/adapters/OCPP20AuthAdapter.ts
src/charging-station/ocpp/auth/strategies/LocalAuthStrategy.ts
tests/charging-station/ocpp/auth/strategies/LocalAuthStrategy-DisablePostAuthorize.test.ts