Q: Trying to use python to authenticate to WebSite I'm attempting to authenticate to a website to automate some device configuration.
There is no official API so I'm using "WebSpy" in my browser to watch what URLs are targeted and the payloads being sent.
I'm unable to get initial authentication working with a python post request.
The target url is https://xxxxxx.xxx/authenticate. 
The payload I see when logging in from a web browser is.
{ "client_id": xxxxxx,
  "username": <plainText username>,
  "password": <plainText password>,
  "realm": "xxxxx",
  "credential_type": "http://auth0.com/oauth/grant-type/password-realm"}

If I replicate all this in a python requests.POST I get back
{ "error": "invalid request",
  "error_description": "Unknown client."}

I should mention the "client_id" I'm sending in my python post is just copied from what I see coming from the browser. 
I imagine that client ID should be dynamically generated somehow but I don't see where it's coming from.
I should also mention I see some reference to a \callback URL happening after login within the web browser so I'm guessing that is how/when the auth token is being offered.
Can anyone point me in the right direction on all this?
Thank you in advance.
