...
- authentication, which is to be defined as "BearerToken"
- tokenUrl, which should direct to the URL that is used to get the BearerToken. This URL is to be set to https://login.hydronet.com/auth/realms/hydronet/protocol/openid-connect/token
Code Block | ||||
---|---|---|---|---|
| ||||
<string key="authentication" value="BearerToken"/> <string key="tokenUrl" value="https://login.hydronet.com/auth/realms/hydronet/protocol/openid-connect/token"/> |
...
The actual bearer token should be set in the password field of the import configuration. The username is not used when using a bearer token for authentication.
...
Code Block | ||||
---|---|---|---|---|
| ||||
<general>
<importType>WIWB</importType>
<serverUrl>https://wiwb.hydronet.com/api</serverUrl>
<connectionTimeOutMillis>900000</connectionTimeOutMillis>
<user>$MY_WIWB_USER_ID$</user>
<password>$MY_WIWB_PASSWORD$</password>
<relativeViewPeriod unit="hour" start="-2" end="0" startOverrulable="false"/>
<idMapId>IdImportWIWB_radar</idMapId>
<unitConversionsId>ImportKNMIUnits</unitConversionsId>
<dataFeedId>WIWB (Knmi.International.Radar.Composite 5min)</dataFeedId>
<actionLogEventTypeId>Imported.IRC</actionLogEventTypeId>
</general>
<properties>
<string key="dataSource" value="Knmi.International.Radar.Composite"/>
<string key="authentication" value="BearerToken"/>
<string key="tokenUrl" value="https://login.hydronet.com/auth/realms/hydronet/protocol/openid-connect/token"/>
</properties>
<timeSeriesSet>
<moduleInstanceId>ImportWIWB</moduleInstanceId>
<valueType>grid</valueType>
<parameterId>P.radar</parameterId>
<locationId>KNMI-RADAR</locationId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="minute" multiplier="5"/>
<readWriteMode>add originals</readWriteMode>
</timeSeriesSet>
</import> |
Proxy ServersminimumAggregationAvailability
When the HydroNet WIWB API connection is required to connect to the Hydronet API through a proxy like MuleSoft, additional authentication information might be required in the header. It is possible to add two additional parameters clientId and clientSecret. The default headers are X-IBM-Client-Id and X-IBM-Client-Secret, but these can be changed by configuring the respective headers.
...