@BigD0g thanks for the code. However when I try to execute in mac Terminal with a bogus username and password to test, I get:
curl -X POST -H "Cache-Control: no-cache" -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" -F "grant_type=password" -F...