.. _everest_api_auth_consumer_API: ################### auth\_consumer\_API ################### .. container:: everest-api overview .. raw:: html
.. container:: lead EVerest API definition for auth consumer API for EVerest API clients that consume authorization events from an Auth module. Provides token validation status updates and the ability to withdraw previously granted authorizations. .. raw:: htmlSpecification: auth_consumer_API.yaml · pionix:de:everest:auth_consumer_API
default mqtt
default local MQTT
localhost:1883everest_api/1/auth_consumer/{module_id}{module_id}The ID of the module as defined in the EVerest config file.
everest_api/1/auth_consumer/{module_id}/m2e/withdraw_authorization$message.header#/replyTo as receive_reply_withdraw_authorization.application/jsonMessage send_request_withdraw_authorization
Withdraw granted authorization.
Payload
Address to send the response to. Omit it to discard the response. An invalid address, see the EVerest API explanation, rejects the request.
Request to withdraw granted authorization. If only the evse_id is given, the granted authorization for this EVSE will be withdrawn. If only the id_token is given, the granted authorization for every EVSE where this id_token is placed will be withdrawn If both parameters are given, the granted authorization for the given EVSE will be withdrawn, if the placed id_token matches the given id_token. If no parameter is given, all granted authorizations for all EVSEs will be removed. If a transaction is running on an affected EVSE, it is stopped. A request that is not such an object, or whose evse_id is not an integer, is ignored with a log warning and withdraws nothing.
Example
{
"headers": {
"replyTo": "everest_api/1/{interface_type}/{module_id}/e2m/{operation_name}/{uuid}"
},
"payload": {
"id_token": {
"value": "string",
"type": "Central"
},
"evse_id": 1
}
}
everest_api/1/auth_consumer/{module_id}/m2e/token_validation_status/get$message.header#/replyTo as receive_reply_get_token_validation_status.application/jsonMessage send_request_get_token_validation_status
Request the most recently published (latched) token validation status.
Payload
Address to send the response to. Omit it to discard the response. An invalid address, see the EVerest API explanation, rejects the request.
Example
{
"headers": {
"replyTo": "everest_api/1/{interface_type}/{module_id}/e2m/{operation_name}/{uuid}"
}
}
everest_api/1/auth_consumer/{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
replyTo address from the request's headers.
Answers send_request_withdraw_authorization.application/jsonMessage receive_reply_withdraw_authorization
Reply to request to withdraw authorization.
Payload
The result of a WithdrawAuthorizationRequest: Accepted in case requested authorization was removed AuthorizationNotFound in case no match for request was found EvseNotFound in case no match for evse_id was found Rejected in case module could not process the request for other reasons
AcceptedAuthorizationNotFoundEvseNotFoundRejectedExample
"Accepted"
everest_api/1/auth_consumer/{module_id}/e2m/token_validation_statusapplication/jsonMessage receive_token_validation_status
Token validation status, optionally with tariff messages
Payload
The token validation status
Example
{
"token": {
"id_token": {
"value": "string",
"type": "Central"
},
"authorization_type": "OCPP"
},
"status": "Processing"
}
replyTo address from the request's headers.
Answers send_request_get_token_validation_status.application/jsonMessage receive_reply_get_token_validation_status
The most recently published token validation status.
Payload
Example
{
"token": {
"id_token": {
"value": "string",
"type": "Central"
},
"authorization_type": "OCPP"
},
"status": "Processing"
}
everest_api/1/auth_consumer/{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
Type of authorization of the provided token. The value of AuthorizationType can influence the authorization process
OCPPRFIDAutochargePlugAndChargeBankCardContains 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
IdTokenType of the provided token. Required by OCPP2.0.1 to distinguish between different types of tokens.
CentraleMAIDMacAddressISO14443ISO15693KeyCodeLocalNoAuthorizationType 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
Ongoing token validation status
ProcessingAcceptedRejectedTimedOutUsedToStartUsedToStopWithdrawnUsedToReauthorizeThe token validation status
Additional properties allowed.
The id tag assigned to this transaction
Ongoing token validation status
ProcessingAcceptedRejectedTimedOutUsedToStartUsedToStopWithdrawnUsedToReauthorizeOptional tariff or pricing messages received with the authorization response.
Request to withdraw granted authorization. If only the evse_id is given, the granted authorization for this EVSE will be withdrawn. If only the id_token is given, the granted authorization for every EVSE where this id_token is placed will be withdrawn If both parameters are given, the granted authorization for the given EVSE will be withdrawn, if the placed id_token matches the given id_token. If no parameter is given, all granted authorizations for all EVSEs will be removed. If a transaction is running on an affected EVSE, it is stopped. A request that is not such an object, or whose evse_id is not an integer, is ignored with a log warning and withdraws nothing.
Additional properties allowed.
The evse id to withdraw authorization for.
The result of a WithdrawAuthorizationRequest: Accepted in case requested authorization was removed AuthorizationNotFound in case no match for request was found EvseNotFound in case no match for evse_id was found Rejected in case module could not process the request for other reasons
AcceptedAuthorizationNotFoundEvseNotFoundRejectedSend 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 message details
Additional properties allowed.