Skip to content

Conversation

@wku12
Copy link
Contributor

@wku12 wku12 commented Dec 2, 2025

Describe your changes

When using OCPP to communicate with backoffice, the Authorize message contains only IdTokenType and Value which makes it impossible to distinguish between RFID and BankCards on the backoffice.
The solution for that is to set IdTokenType to NoAuthorization when the provided token was already authorized by the station itself

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

@wku12 wku12 force-pushed the feat/use_different_IdTokenType_for_bank_cards branch from 8efda31 to 68a1556 Compare December 2, 2025 16:50
value: id_token,
r#type: IdTokenType::Local,
r#type: match authorization_type {
AuthorizationType::BankCard => IdTokenType::NoAuthorization,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A comment on NoAuthorization if you feel like it

@dorezyuk
Copy link
Contributor

dorezyuk commented Dec 5, 2025

I think we should change Rfid to the correct iso value and change bank cards to be "Local". The Ocpp 2.1 defines the authorzation type DirectPayment which is designed for bank cards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants