.. _everest_api_auth_token_validator_API: ########################### auth\_token\_validator\_API ########################### .. container:: everest-api overview .. raw:: html
version 1.1.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestAuth
.. container:: lead EVerest API definition for auth token validator - CLIENT side (MODULE) API for EVerest API clients implementing auth token validator. .. raw:: html

Specification: auth_token_validator_API.yaml · pionix:de:everest:auth_token_validator_API

send the client publishes, EVerest consumes (3) receive EVerest publishes, the client consumes (2)
Servers ======= .. container:: everest-api .. raw:: html

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 ========== .. container:: everest-api .. raw:: html
Client to EVerest ----------------- .. _everest_api_auth_token_validator_API_op_send_reply_validate_token: send\_reply\_validate\_token ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send reply to validate token request
Topic
Dynamic: the replyTo address from the request's headers. Answers receive_request_validate_token.
Direction: Module to EVerest .. raw:: html
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

Definition of ValidationResult

Example

Reply validate token.
{
        "authorization_status": "Accepted",
        "tariff_messages": [],
        "evse_ids": [
          1
        ]
      }
.. _everest_api_auth_token_validator_API_op_send_validate_result_update: send\_validate\_result\_update ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send validate result update
Topic
everest_api/1/auth_token_validator/{module_id}/m2e/validate_result_update
.. raw:: html
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.

Definition of ValidationResultUpdate

Example

ValidationResultUpdate
{
        "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_auth_token_validator_API_op_send_communication_check: send\_communication\_check ~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send communication check
Topic
everest_api/1/auth_token_validator/{module_id}/m2e/communication_check
.. raw:: html
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

CommunicationCheck
true
EVerest to client ----------------- .. _everest_api_auth_token_validator_API_op_receive_request_validate_token: receive\_request\_validate\_token ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Request validate token
Topic
everest_api/1/auth_token_validator/{module_id}/e2m/validate_token
Reply
Sent to $message.header#/replyTo as send_reply_validate_token.
Direction: EVerest to Module .. raw:: html
Message Request validate token application/json

Message receive_request_validate_token

Request to validate token.

Payload

object
  • 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

    Definition of ProvidedIdToken

Example

Minimal payload generated from the schema generated
{
        "headers": {
          "replyTo": "string"
        },
        "payload": {
          "id_token": {
            "value": "string",
            "type": "Central"
          },
          "authorization_type": "OCPP"
        }
      }
.. _everest_api_auth_token_validator_API_op_receive_heartbeat: receive\_heartbeat ~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive heartbeat
Topic
everest_api/1/auth_token_validator/{module_id}/e2m/heartbeat
.. raw:: html
Message Receive heartbeat application/json

Message receive_heartbeat

Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration

Payload

integer HeartBeatId

64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached

Example

Heartbeat
42
Messages ======== .. container:: everest-api .. raw:: html
MessageSummaryUsed by
receive_request_validate_token
Request validate token

Request to validate token.

receive_request_validate_token
send_reply_validate_token
Reply validate token

Reply to validate token.

send_reply_validate_token
send_validate_result_update
Send validate result update

Updated validation result for a given token due to some changes. These can be triggered by TransactionEvent messages or StartTransaction.

send_validate_result_update
receive_heartbeat
Receive heartbeat

Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration

receive_heartbeat
send_communication_check
Send communication check

Signal to EVerest that communication is good or check shall be stopped

send_communication_check
Schemas ======= .. container:: everest-api .. raw:: html
AuthorizationStatus string
string

Authorization Status enum

enumAcceptedBlockedConcurrentTxExpiredInvalidNoCreditNotAllowedTypeEVSENotAtThisLocationNotAtThisTimeUnknownPinRequiredTimeout
CertificateStatus string
string

Certificate status information

enumAcceptedSignatureErrorCertificateExpiredCertificateRevokedNoCertificateAvailableCertChainErrorContractCancelled
EnergyTransferMode string
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.

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
ValidationResult object
object

Result object containing authorization status enum value and an optional parentIdTag

Additional properties allowed.

ValidationResultUpdate object
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.

CommunicationCheck boolean
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
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 ----------------------- .. container:: everest-api .. raw:: html
CertificateHashDataInfo object defined in auth_consumer_API.yaml ↗
object

Contains the certificate information

Additional properties allowed.

CustomIdToken object defined in auth_consumer_API.yaml ↗
object

Type for a custom id token with a free-form type

Additional properties allowed.

IdToken object defined in auth_consumer_API.yaml ↗
object

Type for an id token

Additional properties allowed.

ProvidedIdToken object defined in auth_consumer_API.yaml ↗
object

Type for IdToken provided by auth token providers. Contains additional information about the IdToken like the source and purpose

Additional properties allowed.

MessageContent object defined in display_message_API.yaml ↗
object

Contains message details

Additional properties allowed.