Basic authentication

Basic authentication is stateless. You must send the base64-encoded username and password along with each request through the Authorization header. You can use this method for API calls from curl requests, Python scripts, or individual requests to the API.

OAuth 2 token authentication through platform gateway is the recommended method for accessing the API.

The following is an example of basic authentication with curl:

# the --user flag adds this Authorization header for us
curl -X GET --user 'user:password' https://<gateway server name>/api/gateway/v1/tokens/ -k -L

Disable basic authentication

You can disable basic authentication for security purposes.

Procedure

  1. From the navigation panel, select Settings > Platform gateway.
  2. Click Edit platform gateway settings.
  3. Disable the option Gateway basic auth enabled.
  4. Click Save platform gateway settings.