...
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" encoding="UTF-8"?> <idMap version="1.1" xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/idMap.xsd"> <!-- map internal timeseries directly to external timeseries externalLocation should be set to the locationCode externalParameter should be set to the observationTypeUuid The Digital Delta parser queries each timeseries separately. --> <map internalLocation="MyLoc1" internalParameter="MyPar1" externalLocation="10160355000" externalParameter="44656c7461726573404645575340542e6f62732e6d65616e" /> <map internalLocation="MyLoc2" internalParameter="MyPar1" externalLocation="10160360000" externalParameter="44656c7461726573404645575340542e6f62732e6d65616e" /> </idMap> |
DigitaleDelta Authentication
Currently the server import supports OAuth2 authentication
OAuth2 Authentication
<general> <importTypeStandard>wml2_server</importTypeStandard> <serverUrl> http://host:port/FewsWebServices/rest/digitaledelta/1.0/timeseries</serverUrl> <!-- <user>username</user> --> <!-- normally not required for OAuth2 --> <!-- <password>userpassword</password> --> <!-- normally not required for OAuth2 --> <oauth2Config> <!-- Required: URL from which to receive the access token --> <!-- Optional: For proper OAuth2 authentication a client_id and client_secret are required. However in some cases the authentication URL does not require this . Instead Basic Authentication is required to access the authUrl. Here the user and password fields shown above are required --> <clientId>openid client id</clientId> <clientSecret>openid client secret</clientSecret> <!-- Optional Array: Scope of request --> <scope>openid</scope> <scope>email</scope> <!-- Optional Array: Audience for whom request is intended. Used to validate response. If omitted the clientId and username become are used --> <audience>audienceId</audience> <audience>audienceId2</audience> <!-- Optional: Issuer of the access token. Used to validate response. If omitted the root url of authUrl is used. --> <!-- Optional: A refresh token can be used if provider supports this . --> <refreshToken>refresh access token</refreshToken> </oauth2Config> ... </general> |