Brandawg93 / homebridge-fordpass

Control your Ford vehicle in HomeKit using Homebridge.
GNU General Public License v3.0
61 stars 15 forks source link

[Bug]: error 401 #165

Closed rulerofthenight closed 2 years ago

rulerofthenight commented 2 years ago

Describe the bug

Hi Everything was working great with the plug in, but suddenly I'm getting error 401. I tried reinstalling the plugin but didn't work Any ideas?

Debug Output

Status failed with error: 401

Steps to reproduce

Device Type

Truenas

iOS Version

15.2

Bug Persistence

Consistently

Last Working Version

No response

masav61 commented 2 years ago

Same problem!

Brandawg93 commented 2 years ago

I'm investigating.

Brandawg93 commented 2 years ago

After some digging, I've found that Ford has removed the option for password authentication to their apis. They now only allow authorization_code which is much more difficult to implement. They have also secured their app better with MITM attack blockers. Fixing this is doable but may take some time..

jcleek commented 2 years ago

Thank you @Brandawg93

masav61 commented 2 years ago

Solved! Many many thanks @Brandawg93

rulerofthenight commented 2 years ago

Hi. The fix worked for one day. Now the accessory is not reachable again. Tried to reboot and reinstall the plugin, but no luck

jcleek commented 2 years ago

I do not see the issue you see @rulerofthenight. Mine is still working fine. I even restarted Homebridge to see if it would break.

Brandawg93 commented 2 years ago

@rulerofthenight Try v1.5.3 which I just published. The plugin now uses an official refresh token to reauthenticate rather than using your email and password.