What authentication methods can be used with the Datameer REST API?
There are three authentication methods available for the Datameer REST API.
- User and password. Specify the appropriate user and password under the
-usection of the curl command. It is also a common practice to create a dedicated user for REST API calls.
- Cookie. Use an existing DAPSESSIONID to authenticate. This approach requires a user to login to Datameer UI first. Due to security enhancements as of Datameer-7.1.6, only GET, HEAD, TRACE, and OPTIONS calls work with a cookie as an authentication method. Datameer engineering team has been requested to bring this functionality back and the task is in progress. Follow up with support or your account manager referencing internal ticket DAP-40012 for a status update.
curl -v --cookie "DAPSESSIONID=xxxxxxxxxxxxxx" -X GET 'http://host:port/license/product-id'
- Kerberos ticket. Requires at least version 7.43 of curl and configured SPNEGO mechanism for Datameer. Please refer to our Setup Kerberos authentication for Datameer REST API page for more details.
curl --negotiate -u : -X <Operation> 'http://<Datamer hostname like it mentioned at the service principal>:<port>/<rest API>' --service-name <name part of the service principal>
Please sign in to leave a comment.