Cookie

Use cookies file to run Collibra DQ CURL commands.

Copy
curl -i -X POST -d username=<username> -d password=<password> http://localhost:9000/login -c cookies.txt

curl -i --header "Accept:application/json" -X GET -b cookies.txt "http://localhost:9000/v2/getsecuritymap"

Multi-Tenant without subdomain in URL (tenant parameter required):

Copy
curl -i -X POST -d username=<username> -d password=<password> -d tenant=<tenant> -d tenant=public http://localhost:9000/login -c cookies.txt 
 
curl -i --header "Accept:application/json" -X GET -b cookies.txt "http://localhost:9000/v2/getsecuritymap"

Troubleshooting Postman Authentication

In Postman, if you receive an authentication error (403 "Forbidden"/"Request Denied") while attempting to execute a POST/PUT/DELETE endpoint as a local user, it indicates that either your token is invalid or that your token is valid, but you don’t have permission for the operation. If your user account does have the appropriate permissions and you still receive this error, perform the following steps:

  1. In Postman, remove the cookies from the active session.
  2. In Postman, open the signin API setting and turn on "Disable cookie jar".
  3. In subsequent calls using Postman, reuse the access token, such as a session variable. Alternatively, add a pre-req script to the signin API to clear cookies.