]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
feat(ocpp2.0): implement Authorize request, fix double TransactionEvent(Started)
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 20 Mar 2026 20:07:05 +0000 (21:07 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 20 Mar 2026 20:07:05 +0000 (21:07 +0100)
commitc13a409bc03e6e95436af2cfabf6a4b838680810
tree90db0cb8e25f20673f21991f00ce2019448ee7ae
parent9c0fcfda63dbbf24bbb240f2d4ba45667fbd9c9a
feat(ocpp2.0): implement Authorize request, fix double TransactionEvent(Started)

OCPP20AuthAdapter.authorizeRemote() was incorrectly sending a
TransactionEvent(Started) as a proxy for authorization, causing a
duplicate Started event when ATG subsequently called
startTransactionOnConnector(). Implement the proper OCPP 2.0.1
Authorize request/response flow, harmonizing the auth+start sequence
with OCPP 1.6: Authorize first, then TransactionEvent(Started).
src/charging-station/ocpp/2.0/OCPP20RequestService.ts
src/charging-station/ocpp/2.0/OCPP20ServiceUtils.ts
src/charging-station/ocpp/auth/adapters/OCPP20AuthAdapter.ts
src/types/index.ts
src/types/ocpp/2.0/Requests.ts
src/types/ocpp/2.0/Responses.ts
tests/charging-station/ocpp/auth/adapters/OCPP20AuthAdapter.test.ts