Skip to main content

OData (AWS Secrets Manager)

Read an OData service. The auth mode is data-driven; credentials come from one AWS Secrets Manager secret.

To use this connection type within the API, use a ConnectionTypeCode of ODATA-SECRET.

Variable Reference​

The following variables are supported:

  • ODataAuthType - (Required) How the service is authenticated. Anonymous needs no secret. Secret keys, ? if optional: ntlm 'username' (DOMAIN\user or UPN), 'password'; api-key-query 'param_name', 'api_key'; oauth2-refresh-token 'token_url', 'client_id', 'refresh_token', 'client_secret'? (see Secret Name); oauth2-jwt-bearer 'token_url', 'private_key' (RSA PEM), 'claims' (iss, sub, aud), 'client_id'?, 'client_secret'?. OAuth secrets may add 'scope', 'token_params'; any may add 'headers'.

  • ODataDefaultHeaders - (Optional) JSON object of non-secret headers sent on every request, e.g. {"Accept": "application/json"}. Overrides the auth headers and the secret's 'headers'. Keep secret values in the secret's 'headers'.

  • ODataOAuthClientAuth - (Optional) How oauth2, oauth2-refresh-token and oauth2-jwt-bearer send the client ID and secret to the token endpoint: body (form fields) or basic (an Authorization: Basic header). Defaults to body. For oauth2-jwt-bearer it applies only when the secret holds 'client_id'.

  • ODataSecretName - (Optional) Name or ARN of the AWS Secrets Manager secret holding the credentials. Required unless the authentication type is anonymous. For oauth2-refresh-token it must live under <prefix>/<environment>/oauth-refresh/, the only path the job can write. The job writes the rotated 'refresh_token' and its own 'access_token' and 'access_token_refresh_at' back to it.

  • ODataServiceUrl - (Required) The service root. Entity sets are addressed relative to it.