Skip to content

service_access

Thorsten Zoerner edited this page Feb 1, 2024 · 4 revisions

Service: access

Method settings

Retrieve settings for example for client configuration.

graph TD
Loading

Method publicKey

Retrieve public key of this instance.

graph TD
Loading

Method refresh

Allows to refresh JWT of a metering token (extend time to expiration)

Calls:

graph TD
   access.refresh --> access.verifySelf
   access.refresh --> access.createConcentratorJWT
   access.refresh --> access.createMeterJWT
Loading

Method createMeterActivationCode

Creates pre shared activation code for given meter

Calls:

graph TD
   access.createMeterActivationCode --> clientactivation.find
   access.createMeterActivationCode --> clientactivation.remove
   access.createMeterActivationCode --> access.randomString
   access.createMeterActivationCode --> clientactivation.insert
   access.createMeterActivationCode --> access.createMeterJWT
Loading

Method createMeterJWT

Create Token to authorize external reading updates of meter

Called by:

graph TD
   access.refresh --> access.createMeterJWT
   access.createMeterActivationCode --> access.createMeterJWT
   access.activation --> access.createMeterJWT
Loading

Method demo

Create Token to authorize with demo user

graph TD
Loading

Method createReadingJWT

Create Token to verify reading updates of this instance.

Called by:

graph TD
   metering.updateReading --> access.createReadingJWT
Loading

Method createConcentratorJWT

Create wildcard Token to authorize external reading updates of meter

Called by:

graph TD
   access.refresh --> access.createConcentratorJWT
Loading

Method randomString

Creates a random String of given length.

Called by:

graph TD
   access.createMeterActivationCode --> access.randomString
   access.activation --> access.randomString
   audit.requestApproval --> access.randomString
   contract.add --> access.randomString
   nextcloud.createAssetShare --> access.randomString
Loading

Method activation

Provides update token for automated meter readings.

Calls:

graph TD
   access.activation --> clientactivation.find
   access.activation --> clientactivation.remove
   access.activation --> access.randomString
   access.activation --> clientactivation.insert
   access.activation --> access.createMeterJWT
Loading

Method createTariffJWT

Create Token to verify tariff labels of this instance.

Called by:

graph TD
   tariff.prices --> access.createTariffJWT
Loading

Method createClearingJWT

Create Token to verify clearings of this instance.

Called by:

graph TD
   clearing.commit --> access.createClearingJWT
Loading

Method createInvoiceJWT

Create Token to verify invoices of this instance.

Called by:

graph TD
   debit.closeBilling --> access.createInvoiceJWT
Loading

Method verifySelf

Verify signing token is this instance.

Called by:

graph TD
   access.refresh --> access.verifySelf
   metering.updateReading --> access.verifySelf
Loading

Method updateAssetMeta

Update client specific asset meta data. Use dot notation for nested fields (sub documents)

Calls:

graph TD
   access.updateAssetMeta --> asset.upsert
Loading

Method sharedFolder

Calls:

graph TD
   access.sharedFolder --> nextcloud.createAssetShare
   access.sharedFolder --> asset.get
Loading

Method getAssetMeta

Retrieve Metadata of client specific asset.

Calls:

graph TD
   access.getAssetMeta --> asset.get
   access.getAssetMeta --> asset.get
   access.getAssetMeta --> asset.get
Loading
Clone this wiki locally