Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note that the username and password still has to be set to be able to login. 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.The username is provided as the "clientId" and the password is provided as the "clientSecret".

Code Block
languagexml
titleExample for Intern. Radar Composite, using OpenID Connect
		<general>
			<importType>WIWB</importType>
			<serverUrl>https://wiwb.hydronet.com/api</serverUrl>
			<connectionTimeOutMillis>900000</connectionTimeOutMillis>
			<user>$MY_WIWB_CLIENT_ID$</user>
			<password>$MY_WIWB_CLIENT_SECRET$</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

...

Servers

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.

...