auth_token_validator_API¶
EVerest API definition for auth token validator - CLIENT side (MODULE)
API for EVerest API clients implementing auth token validator.
Specification: auth_token_validator_API.yaml · pionix:de:everest:auth_token_validator_API
Servers¶
default mqtt
default local MQTT
- Host
localhost:1883- Topic prefix
everest_api/1/auth_token_validator/{module_id}{module_id}The ID of the module as defined in the EVerest config file.
Operations¶
Client to EVerest¶
send_reply_validate_token¶
- Topic
- Dynamic: the
replyToaddress from the request's headers. Answers receive_request_validate_token.
Direction: Module to EVerest
Message Reply validate token application/json
Message send_reply_validate_token
Reply to validate token.
Payload
object ValidationResult
Result object containing authorization status enum value and an optional parentIdTag
Example
{
"authorization_status": "Accepted",
"tariff_messages": [],
"evse_ids": [
1
]
}
send_validate_result_update¶
- Topic
everest_api/1/auth_token_validator/{module_id}/m2e/validate_result_update
Message Send validate result update application/json
Message send_validate_result_update
Updated validation result for a given token due to some changes. These can be triggered by TransactionEvent messages or StartTransaction.
Payload
object ValidationResultUpdate
Result object containing an updated validation result for a given token. This is needed since certain information can be updated at a later time.
Example
{
"connector_id": 1,
"validation_result": {
"authorization_status": "Accepted",
"certificate_status": "Accepted",
"tariff_messages": [],
"expiry_time": "2019-08-24T14:15:22Z",
"parent_id_token": {
"value": "string",
"type": "Central"
}
}
}
send_communication_check¶
- Topic
everest_api/1/auth_token_validator/{module_id}/m2e/communication_check
Message Send communication check application/json
Message send_communication_check
Signal to EVerest that communication is good or check shall be stopped
Payload
Send true at least every cfg_communication_check_to_s seconds to signal that the client is alive, otherwise EVerest raises a CommunicationFault, which the next message clears. Send false to stop the check until the module restarts.
Example
true
EVerest to client¶
receive_request_validate_token¶
- Topic
everest_api/1/auth_token_validator/{module_id}/e2m/validate_token- Reply
- Sent to
$message.header#/replyToas send_reply_validate_token.
Direction: EVerest to Module
Message Request validate token application/json
Message receive_request_validate_token
Request to validate token.
Payload
-
headersobject required
-
replyTostring required
Address to send the response to.
-
-
payloadobject requiredProvidedIdToken ↗
Type for IdToken provided by auth token providers. Contains additional information about the IdToken like the source and purpose
Example
{
"headers": {
"replyTo": "string"
},
"payload": {
"id_token": {
"value": "string",
"type": "Central"
},
"authorization_type": "OCPP"
}
}
receive_heartbeat¶
- Topic
everest_api/1/auth_token_validator/{module_id}/e2m/heartbeat
Message Receive heartbeat application/json
Message receive_heartbeat
Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration
Payload
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
Example
42
Messages¶
Schemas¶
AuthorizationStatus string¶
Authorization Status enum
AcceptedBlockedConcurrentTxExpiredInvalidNoCreditNotAllowedTypeEVSENotAtThisLocationNotAtThisTimeUnknownPinRequiredTimeoutCertificateStatus string¶
Certificate status information
AcceptedSignatureErrorCertificateExpiredCertificateRevokedNoCertificateAvailableCertChainErrorContractCancelledEnergyTransferMode string¶
Possible energy transfer modes. The modes AC_single_phase_core to DC_unique apply to DIN70121 and ISO15118-2. The other modes DC to MCS_BPT apply to ISO15118-20 (and amendment). AC_DER is treated the same as AC_DER_IEC.
AC_single_phase_coreAC_two_phaseAC_three_phase_coreDC_coreDC_extendedDC_combo_coreDC_uniqueDCAC_BPTAC_BPT_DERAC_DERAC_DER_IECAC_DER_SAEDC_BPTDC_ACDPDC_ACDP_BPTWPTMCSMCS_BPTValidationResult object¶
Result object containing authorization status enum value and an optional parentIdTag
Additional properties allowed.
-
Authorization Status enum
enumAcceptedBlockedConcurrentTxExpiredInvalidNoCreditNotAllowedTypeEVSENotAtThisLocationNotAtThisTimeUnknownPinRequiredTimeout -
Certificate status information
enumAcceptedSignatureErrorCertificateExpiredCertificateRevokedNoCertificateAvailableCertChainErrorContractCancelled -
tariff_messagesarray<object> required
Messages that can contain session price information to show the user. The array can contain multiple messages in different languages. The first message in this array shall be used to start the transaction at the powermeter (for OCMF). Empty if no messages are available.
-
itemsobject MessageContent ↗
Message with pricing information in a specific language
-
-
expiry_timestring
Absolute time point when reservation expires in RFC3339 format
format date-time -
evse_idsarray<integer>
Only used when the id token is valid for one or more specific evses, not for the whole charging station. Indicates for which evse ids the provided token is valid
-
itemsintegermin 1
-
-
reservation_idinteger
The reservation id that is used with this validated token.
-
allowed_energy_transfer_modesarray<string>
This is only used when we want to specify which energy transfer modes are allowed for the respective authorization request.
min items 1-
Possible energy transfer modes. The modes AC_single_phase_core to DC_unique apply to DIN70121 and ISO15118-2. The other modes DC to MCS_BPT apply to ISO15118-20 (and amendment). AC_DER is treated the same as AC_DER_IEC.
enumAC_single_phase_coreAC_two_phaseAC_three_phase_coreDC_coreDC_extendedDC_combo_coreDC_uniqueDCAC_BPTAC_BPT_DERAC_DERAC_DER_IECAC_DER_SAEDC_BPTDC_ACDPDC_ACDP_BPTWPTMCSMCS_BPT
-
ValidationResultUpdate object¶
Result object containing an updated validation result for a given token. This is needed since certain information can be updated at a later time.
Additional properties allowed.
-
validation_resultobject requiredValidationResult
Result object containing authorization status enum value and an optional parentIdTag
-
connector_idinteger required
Id of the connector on which the id token information has been updated.
CommunicationCheck boolean¶
Send true at least every cfg_communication_check_to_s seconds to signal that the client is alive, otherwise EVerest raises a CommunicationFault, which the next message clears. Send false to stop the check until the module restarts.
HeartBeatId integer¶
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
Schemas from other APIs¶
CertificateHashDataInfo object defined in auth_consumer_API.yaml ↗¶
Contains the certificate information
Additional properties allowed.
-
hashAlgorithmstring required
Used algorithms for the hashes provided
enumSHA256SHA384SHA512 -
issuerNameHashstring required
Hashed value of the Issuer Distinguished Name
max length 128 -
issuerKeyHashstring required
Hashed value of the issuers public key
max length 128 -
serialNumberstring required
The serial number of the certificate
max length 40 -
responderURLstring required
This contains the responder URL
max length 512
CustomIdToken object defined in auth_consumer_API.yaml ↗¶
Type for a custom id token with a free-form type
Additional properties allowed.
-
valuestring required
Arbitrary value of the IdToken
min length 0max length 36 -
typestring required
Custom type of the token
min length 0max length 50
IdToken object defined in auth_consumer_API.yaml ↗¶
Type for an id token
Additional properties allowed.
-
valuestring required
Arbitrary value of the IdToken: This has to be printable case insensitive ascii
min length 0max length 36 -
Type of the token
enumCentraleMAIDMacAddressISO14443ISO15693KeyCodeLocalNoAuthorization -
additional_infoarray<object>
A list of additional custom id tokens than can be used for providing additional information for validation
-
itemsobject CustomIdToken ↗
Type for a custom id token with a free-form type
-
ProvidedIdToken object defined in auth_consumer_API.yaml ↗¶
Type for IdToken provided by auth token providers. Contains additional information about the IdToken like the source and purpose
Additional properties allowed.
-
request_idinteger
Id of the authorization request of this token. Could be used to put remoteStartId of OCPP2.0.1
-
Authorization type of the token.
enumOCPPRFIDAutochargePlugAndChargeBankCardmin length 2max length 32 -
connectorsarray<integer>
A list of connector ids to which the authorization can be assigned
-
itemsintegermin 1
-
-
prevalidatedboolean
Indicates that the id token is already validated by the provider
-
certificatestring
The X.509 certificated presented by EV and encoded in PEM format
max length 5500 -
iso15118CertificateHashDataarray<object>
Contains the information needed to verify the EV Contract Certificate via OCSP
min items 1max items 4-
itemsobject CertificateHashDataInfo ↗
An array of contract certificate infos
-
MessageContent object defined in display_message_API.yaml ↗¶
Contains message details
Additional properties allowed.
-
languagestring
-
contentstring required