Use the Remote Data Agent to authenticate to SAS® Viya® in order to verify SAS® Cloud Data Exchange


When setting up the Remote Data Agent, the SAS Viya administrator provides an OAuth client secret to be used in the da-env.vars file. A client_credentials OAuth authentication flow with SAS Viya uses this secret.

This SAS KB article outlines how to do the following:

Verification Steps

Gather Required Credentials

You need the following information:

dagentsrv-<kubernetes_viya_namespace>

Note: Replace <kubernetes_viya_namespace> with the actual namespace where SAS Viya is deployed.

Run Authentication Test Using curl

Use the following curl command to test the authentication:

curl --request POST \
  --url https://example.com/SASLogon/oauth/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data grant_type=client_credentials \
  --data client_id=dagentsrv-<kubernetes_viya_namespace> \
  --data client_secret=<secret>

Interpret the Response