...
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.
Starting with May 1 2022, Hydronet API uses a different endpoint to provide the users with an access token. To retrieve the token a client id, client secret and a token url are necessary. The client ID and secret can be configured as username and password respectively. The token url should be configured as a property. If configured, FEWS will retrieve the token for the import. If it isn’t added to the config, FEWS will assume that the old authentication process is still in use.
...
Code Block | ||||
---|---|---|---|---|
| ||||
<properties> <string key="dataSource" value="BHP.Composite.Adjusted"/> <string key="authentication" value="BearerToken"/> <string key="keepDownloadDataInTempFolder" value="true" "/> <string key="clientId" value="ID[to be provided by WIWB / Hydronet]"/> <string key="clientIdHeader" value="ID[to be provided by WIWB / Hydronet]"/> <string key="clientSecret" value="Secret[to be provided by WIWB / Hydronet]"/> <string key="clientSecretHeader" value="ID[to be provided by WIWB / Hydronet]"/> <bool key="logClientIdHeader" value="true"/> <string key="tokenUrl" value="https://login.hydronet.com/auth/realms/hydronet/protocol/openid-connect/token"></string> </properties> |
...