Closed ryancornia closed 2 years ago
Hi @ryancornia, I will look into this for you!
Looks like Ford has disabled the OAuth password grant based on the error response CSIAQ0172E The grant type [password] is not supported. Supported grant types are [authorization_code, refresh_token]
.
Authentication has been fixed for the Node SDK. Python fix will come later today ;)
This is fixed with v1.3.6
I had a script that worked regularly until about 2 weeks ago, and is now failing when trying to get the access token:
File "/.local/lib/python3.8/site-packages/connectedcar/connectedcar.py", line 63, in get_user_access_token response = requester.call( File "/.local/lib/python3.8/site-packages/connectedcar/requester.py", line 47, in call raise e File "/.local/lib/python3.8/site-packages/connectedcar/requester.py", line 29, in call raise E.ValidationException(response) connectedcar.exceptions.ValidationException: CSIAQ0172E The grant type [password] is not supported. Supported grant types are [authorization_code, refresh_token].
To Reproduce ` odo['odometer'] = odo.pop('data');
"/data/ryan@roadtripryan.com/personal/ranger.py" 32L, 1039C 1,1 Top
!/usr/bin/python3
import connectedcar import json
client = connectedcar.AuthClient( '9fb503e0-715b-47e8-adfd-ad4b7770f73b', None, None) # Create client connection access = client.get_user_access_token( '', '') # Fetch client access token
user = connectedcar.User(access['access_token']) # New User Object vehicles = user.vehicles() # Fetch list of user vehicles `
Expected behavior I expected to get an access token and list of vehicles.
Desktop (please complete the following information):