Chargers lose connectivity. OCPP lets them keep authorizing drivers from a Local Authorization List the CSMS manages and an Authorization Cache the charger fills itself. A handful of configuration settings decide what happens to known and unknown tokens while offline.
The short answer: how do OCPP chargers authorize offline?
When a charger cannot reach its CSMS, it can still authorize drivers from two local stores. The Local Authorization List is a versioned list of tokens the CSMS installs. The Authorization Cache is a store of recent results the charger keeps by itself. Configuration settings decide whether the charger trusts these stores, and what it does with a token it has never seen.
Get the settings right and an outage is invisible to drivers. Get them wrong and drivers are stranded, or the network gives away free energy.
Why offline authorization matters
Chargers sit in car parks, basements and roadside cabinets, often on cellular links. Connections drop for minutes or hours. Without a local decision, every outage turns into drivers who cannot start a session, and a support queue.
The question is not whether to authorize offline, but which tokens to trust and how much risk to accept for the rest. That depends on the site. A depot with a known fleet can trust its list completely. A public charger has to decide whether an unknown card is worth a session it cannot verify.
The Local Authorization List
The Local Authorization List belongs to the CSMS. It holds idTokens with their authorization status and, optionally, an expiry date and a group.
SendLocalListinstalls or updates the list. The update type isFull, which replaces the list, orDifferential, which adds, changes or removes entries.GetLocalListVersionreturns the version the charger holds. The CSMS compares it with its own version to decide what to send.- Every update carries a list version number. If the charger's version does not match what the CSMS expects, send a full update rather than guessing which differentials were lost.
In OCPP 1.6 these messages belong to the Local Auth List Management profile, with three settings: LocalAuthListEnabled switches the list on, LocalAuthListMaxLength is how many tokens the charger can store, and SendLocalListMaxLength is how many entries fit in one message. Large fleets of RFID cards need several messages per full update, so the CSMS has to page through them.
When the list and the CSMS disagree about a token, a 1.6 charger can report LocalListConflict on StatusNotification. It usually means the list on the charger is stale. Our OCPP 1.6 error codes guide covers the rest of the fault list.
The Authorization Cache
The Authorization Cache belongs to the charger. When the CSMS accepts or rejects a token, the charger stores the result, so the same card can be checked locally next time.
- In OCPP 1.6,
AuthorizationCacheEnabledturns it on, when the charger supports it. ClearCacheempties it. The CSMS cannot write entries into the cache, only clear it.
Use the cache for convenience and the list for control. When you block a stolen card, remove it from the Local Authorization List and clear the cache. Clearing only one of them leaves the card usable from the other.
Which settings control offline behaviour?
A few settings decide when local data is trusted. The names differ between 1.6 configuration keys and the 2.0.1 device model, but the behaviour is the same.
| Behaviour | OCPP 1.6 key | OCPP 2.0.1 variable |
|---|---|---|
| Start immediately for locally known tokens while online, without waiting for the CSMS | LocalPreAuthorize | AuthCtrlr.LocalPreAuthorize |
| Start for locally known tokens while offline | LocalAuthorizeOffline | AuthCtrlr.LocalAuthorizeOffline |
| Start for unknown tokens while offline | AllowOfflineTxForUnknownId | AuthCtrlr.OfflineTxForUnknownIdEnabled |
| Stop the session if the CSMS later rejects the token | StopTransactionOnInvalidId | TxCtrlr.StopTxOnInvalidId |
| Energy cap (Wh) after a token is rejected mid-session | MaxEnergyOnInvalidId | TxCtrlr.MaxEnergyOnInvalidId |
| Use the Local Authorization List | LocalAuthListEnabled | LocalAuthListCtrlr.Enabled |
| Use the Authorization Cache | AuthorizationCacheEnabled | AuthCacheCtrlr.Enabled |
Read the current values from each charger before you change anything. In 1.6 that is GetConfiguration; in 2.0.1, GetVariables or a device model report. Defaults vary by vendor and firmware, and some keys are read-only on some models.
Unknown tokens: driver experience against revenue risk
The hardest setting is what to do with a token the charger has never seen while it is offline.
If you allow it, the driver charges and the charger sends the transaction when it reconnects. If the CSMS then rejects the token, StopTransactionOnInvalidId decides whether the charger stops the session, and MaxEnergyOnInvalidId can cap the energy delivered after rejection. The session may still end up unbillable.
If you refuse it, nothing is given away, but any driver whose card is not in the list or cache is stuck until the link returns.
A reasonable default by site type:
- Private depots and workplace fleets: keep a complete Local Authorization List and refuse unknown tokens. You know every card.
- Public chargers with roaming: allow unknown tokens offline only if your revenue and support model can absorb the loss, and stop sessions on invalid tokens once the charger is back online.
- Payment-terminal sites: card payments follow their own flow, so local RFID rules affect fewer drivers.
Keeping lists in sync across a fleet
Local lists drift. Chargers come back from a firmware update with an empty list, a differential is lost during an outage, or a card blocked an hour ago is still on fifty chargers.
- Check versions regularly. Compare
GetLocalListVersionwith the CSMS version on each reconnect, and send a full update on mismatch. - Prefer differentials for routine changes. They are small and fast, and a blocked card reaches the fleet in minutes.
- Size the list to the charger. Respect
LocalAuthListMaxLength. A public charger does not need every roaming token, only the ones that matter at that site. - Include roaming tokens deliberately. Tokens from eMSP partners arrive over OCPI. Whether they belong in local lists is a business decision, not a default.
Doing this across several backends or a mixed 1.6 and 2.0.1 fleet is where an OCPP gateway helps: one layer sees every charger's connection state, whichever backend issues the tokens.
Related reading
- OCPP 1.6 error codes explained for
LocalListConflictand the other faults. - OCPP 2.0.1 device model for the
AuthCtrlrandLocalAuthListCtrlrcomponents. - OCPP guide: gateway, proxy and versions for how authorization fits the rest of the protocol.
- Talk to our team if you are designing offline rules for a mixed fleet.



