Authentication
The On Key API supports identifying and authenticating users using the following list of OpenID Connect 1.0 compliant Identity Providers:
Before invoking any of the REST API calls, you need to setup and configure your On Key Identity Provider to support On Key API integration through creating an unique client id.
Note
Configuring the external Identity Provider is beyond the scope of this document. Contact your On Key Administrator.
Once configured, issue the necessary API calls to your On Key Identity Provider to get an access token. As the access token is linked to an unique On Key User account, all subsequent REST API calls will be authorised based on the On Key permissions granted to the linked On Key User.
curl -v -X GET https://{server}/api/tenants/{client}/{connection}/modules/aom/meters/50000120 \
-H 'Authorization: Bearer {accessToken}'