.. _everest_api_auth_token_validator_API: ########################### auth\_token\_validator\_API ########################### .. container:: everest-api overview .. raw:: html
.. container:: lead EVerest API definition for auth token validator - CLIENT side (MODULE) API for EVerest API clients implementing auth token validator. .. raw:: htmlSpecification: auth_token_validator_API.yaml · pionix:de:everest:auth_token_validator_API
default mqtt
default local MQTT
localhost:1883everest_api/1/auth_token_validator/{module_id}{module_id}The ID of the module as defined in the EVerest config file.
replyTo address from the request's headers.
Answers receive_request_validate_token.application/jsonMessage send_reply_validate_token
Reply to validate token.
Payload
Result object containing authorization status enum value and an optional parentIdTag
Example
{
"authorization_status": "Accepted",
"tariff_messages": [],
"evse_ids": [
1
]
}
everest_api/1/auth_token_validator/{module_id}/m2e/validate_result_updateapplication/jsonMessage 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
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"
}
}
}
everest_api/1/auth_token_validator/{module_id}/m2e/communication_checkapplication/jsonMessage 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_api/1/auth_token_validator/{module_id}/e2m/validate_token$message.header#/replyTo as send_reply_validate_token.application/jsonMessage receive_request_validate_token
Request to validate token.
Payload
Address to send the response to.
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"
}
}
everest_api/1/auth_token_validator/{module_id}/e2m/heartbeatapplication/jsonMessage 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
Authorization Status enum
AcceptedBlockedConcurrentTxExpiredInvalidNoCreditNotAllowedTypeEVSENotAtThisLocationNotAtThisTimeUnknownPinRequiredTimeoutCertificate status information
AcceptedSignatureErrorCertificateExpiredCertificateRevokedNoCertificateAvailableCertChainErrorContractCancelledPossible 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_BPTResult object containing authorization status enum value and an optional parentIdTag
Additional properties allowed.
Authorization Status enum
AcceptedBlockedConcurrentTxExpiredInvalidNoCreditNotAllowedTypeEVSENotAtThisLocationNotAtThisTimeUnknownPinRequiredTimeoutCertificate status information
AcceptedSignatureErrorCertificateExpiredCertificateRevokedNoCertificateAvailableCertChainErrorContractCancelledMessages 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.
Message with pricing information in a specific language
Absolute time point when reservation expires in RFC3339 format
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
The reservation id that is used with this validated token.
This is only used when we want to specify which energy transfer modes are allowed for the respective authorization request.
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_BPTResult 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.
Result object containing authorization status enum value and an optional parentIdTag
Id of the connector on which the id token information has been updated.
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.
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
Contains the certificate information
Additional properties allowed.
Used algorithms for the hashes provided
SHA256SHA384SHA512Hashed value of the Issuer Distinguished Name
Hashed value of the issuers public key
The serial number of the certificate
This contains the responder URL
Type for a custom id token with a free-form type
Additional properties allowed.
Arbitrary value of the IdToken
Custom type of the token
Type for an id token
Additional properties allowed.
Arbitrary value of the IdToken: This has to be printable case insensitive ascii
Type of the token
CentraleMAIDMacAddressISO14443ISO15693KeyCodeLocalNoAuthorizationA list of additional custom id tokens than can be used for providing additional information for validation
Type for a custom id token with a free-form type
Type for IdToken provided by auth token providers. Contains additional information about the IdToken like the source and purpose
Additional properties allowed.
Id of the authorization request of this token. Could be used to put remoteStartId of OCPP2.0.1
Authorization type of the token.
OCPPRFIDAutochargePlugAndChargeBankCardA list of connector ids to which the authorization can be assigned
Indicates that the id token is already validated by the provider
The X.509 certificated presented by EV and encoded in PEM format
Contains the information needed to verify the EV Contract Certificate via OCSP
An array of contract certificate infos
Contains message details
Additional properties allowed.