.. _everest_api_auth_token_provider_API: ########################## auth\_token\_provider\_API ########################## .. container:: everest-api overview .. raw:: html
version 1.0.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestAuth
.. container:: lead EVerest API definition for auth token provider API for EVerest API clients implementing auth token provider. .. raw:: html

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

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

default mqtt

default local MQTT

Host
localhost:1883
Topic prefix
everest_api/1/auth_token_provider/{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_provider_API_op_send_provided_token: send\_provided\_token ~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send provided token
Topic
everest_api/1/auth_token_provider/{module_id}/m2e/provided_token
Direction: Module to EVerest .. raw:: html
Message Send provided token application/json

Message send_provided_token

The provided token

Payload

object ProvidedIdToken ↗

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

Definition of ProvidedIdToken

Example

The Provided Token
{
        "authorization_type": "OCPP",
        "id_token": {
          "type": "Central",
          "value": "TOKEN"
        }
      }
.. _everest_api_auth_token_provider_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_provider/{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_provider_API_op_receive_heartbeat: receive\_heartbeat ~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive heartbeat
Topic
everest_api/1/auth_token_provider/{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
send_provided_token
Send provided token

The provided token

send_provided_token
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
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.