title: Symantec End Point Manager API - Authentication issues
body: <p>The following is my code:</p>
  
  <pre><code>import requests, json
  
  proxyDict = {
      "http": "&lt;proxy&gt;",
  }
  base_url = "https://&lt;host_IP&gt;/sepm/api/v1/identity/authenticate"
  
  # if output is required in JSON format
  json_format = True
  
  payload = {
      "username" : "&lt;username_here&gt;",
      "password" : "&lt;password_here&gt;",
      "domain" : ""
  }
  
  headers = {
      "Content-Type" : "application/json"
  }
  
  requests.packages.urllib3.util.ssl_.DEFAULT_CIPHERS += 'HIGH:!DH:!aNULL' # necessary
  r = requests.Session()      # Start session in order to store the SessionID Cookie
  print json.dumps(payload)
  r = requests.post(base_url, proxies=proxyDict, verify=False, headers=headers, data=json.dumps(payload))
  
  strings = r.text
  print strings
  </code></pre>
  
  <blockquote>
    <p>The <code>SSL</code> certificate has some errors, and I am hence using <code>verify=False</code> and  <code>DEFAULT_CIPHERS += 'HIGH:!DH:!aNULL'</code></p>
  </blockquote>
  
  <p>The above code is inline with the documentation provided, but the server is refusing my <code>auth</code> request, with the following error:</p>
  
  <pre><code>{"errorCode":"400","errorMessage":"Invalid Username or Password"}
  </code></pre>
  
  <p>Before you jump the gun, I checked and rechecked my credentials, and then checked a couple of more times. <strong><em>my credentials are correct</em></strong></p>
  
  <p><strong>Is there an error in what I am doing?</strong></p>
  
  <p>Additional info: SEPM Version: <code>{"version":"12.1.6168.6000"}</code></p>