lorenzodonini / ocpp-go

Open Charge Point Protocol implementation in Go
MIT License
277 stars 126 forks source link

Allowed empty group ID tokens for NoAuthorization token type #250

Closed Jonesywolf closed 8 months ago

Jonesywolf commented 10 months ago

Similar to 2a2925c, the IdToken field of a Group ID Token should not be required in the validation for the NoAuthorization token type, this can lead to errors with the OCTT when configured for NoAuthorization in their latest update, causing this library to send the following error:

[
  4,
  "2340948007",
  "OccurrenceConstraintViolation",
  "Field CallResult.Payload.IDTokenInfo.GroupIdToken.IdToken required but not found for feature TransactionEvent",
  {}
]