...
OAuth2 Authentication version 2017.02 and later
<general>
Code Block |
---|
<general> <importType>DigitalDelta</importType> |
<serverUrl>
http<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>
<oauth2Config> <!-- Required: URL from which to receive the access token --> |
<authUrl>
https<authUrl>https://sso.aquadesk.nl/connect/ |
token</authUrl> <!-- 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. -->
<issuer>
httpsInstead 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. --> <issuer>https://sso.aquadesk. |
nl</issuer> |
<!-- Optional: A refresh token can be used if provider supports this. --> |
<refreshToken>refresh access <refreshToken>refresh access token</refreshToken> |
</oauth2Config> |
... |
</general> |
OAuth2 Authentication versions before 2017.02
Code Block |
---|
<general> |
<importType>DigitalDelta</importType> |
<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 -- |
> ... |
</general> |
<properties>
<string <properties> <string key="authUrl" value="https://accounts.google.com/o/oauth2/token" /> |
<string <string key="issuer" value="https://sso.aquadesk.nl" /> |
<string <string key="clientId" value="id...." /> |
<string <string key="clientSecret" value="*****" /> |
</properties> |