]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(log): quote and truncate all auth identifiers in log messages
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 31 Mar 2026 22:34:20 +0000 (00:34 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 31 Mar 2026 22:34:20 +0000 (00:34 +0200)
commit854457bd4283388d5f5f2f1713c7e1e3a01c4a9b
treedb5845b4d8398a74333a07bc14755a7f5611b65a
parenta428896fece63ca81fb65377715296357630216a
refactor(log): quote and truncate all auth identifiers in log messages

Wrap all idTag/idToken/identifier values in single quotes and apply
truncateId() consistently across OCPP 1.6, 2.0, and auth module log
messages. Removes eslint-disable comments for restrict-template-expressions
where ?? '' fallback eliminates the type issue.
12 files changed:
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts
src/charging-station/ocpp/1.6/OCPP16ResponseService.ts
src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts
src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts
src/charging-station/ocpp/IdTagAuthorization.ts
src/charging-station/ocpp/auth/adapters/OCPP16AuthAdapter.ts
src/charging-station/ocpp/auth/adapters/OCPP20AuthAdapter.ts
src/charging-station/ocpp/auth/cache/InMemoryAuthCache.ts
src/charging-station/ocpp/auth/services/OCPPAuthServiceImpl.ts
src/charging-station/ocpp/auth/strategies/LocalAuthStrategy.ts
src/charging-station/ocpp/auth/strategies/RemoteAuthStrategy.ts
src/charging-station/ocpp/auth/utils/AuthHelpers.ts