Brandawg93 / homebridge-fordpass

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

You do not have authorization to access <vehicle name> #130

Open reverendalc opened 3 years ago

reverendalc commented 3 years ago

hello;

I have a 2016 Lincoln MKZ-h, and have read on Discord that there has been success adding Lincoln models with FordPass. However, I am receiving repeated errors in logs:

[13/02/2021, 17:33:37] [FordPass] You do not have authorization to access MKZ-h.

I have tried the following:

Lincoln Way app confirm/reset credentials disable 2FA disable touchID download/link FordPass app (it tells me I have a Lincoln and directs me back to the Lincoln Way app) delete vehicle from plugin re-add vehicle to plugin change name of vehicle in app, in plugin, and both

I would offload/reinstall the Lincoln way app if there's utility there

Brandawg93 commented 3 years ago

From what I remember, someone forked the repo and changed a few things to get it to work. I think you would just need to changed the API endpoints to get it to work, but I have no way of testing it because I don't have a Lincoln vehicle. If you find a way, though, please let me know and I'll add it to this plugin.

reverendalc commented 3 years ago

I would be happy to experiment. I’m smart enough to follow general direction but not smart enough to grab the bull by the horns, so to speak

mdntblu commented 3 years ago

Has anyone figured out how to get LincolnWay to work with this plugin? There doesn't seem to be a plugin for Lincoln. Any instructions on what to change?

reverendalc commented 3 years ago

Others have reported that newer Lincoln vehicles add just fine with the standard Ford plugin. If you have a Lincoln hybrid however (such as me) it doesn’t work because of calls to a different web service.

Brandawg93 commented 2 years ago

I may have found a way to get this to work. Anyone up for testing it?

reverendalc commented 2 years ago

Yup.

Brandawg93 commented 2 years ago

Great! The latest test version is 1.6.0-test.1. You should be able to install it via the homebridge UI. I've changed the auth url from https://sso.ci.ford.com to https://sso.ci.lincoln.com. Not sure if it will help, but we'll see.

reverendalc commented 2 years ago

I’m on my way to work (6:45am here)

will test tonight

Brandawg93 commented 2 years ago

No worries. Thanks for the help!

reverendalc commented 2 years ago

I got the plugin finally installed, after having to re-add my Lincoln to the app, update nodejs, HB, and a bunch of other stuff… I need to review the logs, it’s spitting out some red stuff, but it’s quickly buried behind a few dozen tasmota devices syncing up.

It’s certainly not exposing anything to HB/HK. Does the plugin have its own logging?

On Jan 12, 2022, at 6:44 AM, Brandon McFarlin @.***> wrote:

 No worries. Thanks for the help!

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.

Brandawg93 commented 2 years ago

You should be able to turn on debug mode in Homebridge and see more logs. But the red stuff is helpful too.

reverendalc commented 2 years ago

I'm still receiving the ^[[37m[14/01/2022, 17:18:09] ^[[39m^[[36m[FordPass]^[[39m ^[[31mYou do not have authorization to access MKZ-h.^[[39m

and ^[[37m[14/01/2022, 17:18:25] ^[[39m^[[36m[FordPass]^[[39m ^[[31mYou do not have authorization to access MKZ-h.^[[39m ^[[37m[14/01/2022, 17:18:25] ^[[39m^[[36m[FordPass]^[[39m ^[[31mCannot get information for MKZ-h engine^[[39m ^[[37m[14/01/2022, 17:18:25] ^[[39m^[[36m[FordPass]^[[39m ^[[31mYou do not have authorization to access MKZ-h.^[[39m ^[[37m[14/01/2022, 17:18:25] ^[[39m^[[36m[FordPass]^[[39m ^[[31mCannot get information for MKZ-h lock^[[39m

I have debug mode enabled always.

my issue may be related to the electric vehicle debacle, and that I cannot add my VIN to ford pass but only the Lincoln Way app.

Brandawg93 commented 2 years ago

Interestingly, I can log into the LincolnWay app with my fordpass credentials. After digging around I found that there were a few minor differences in the network calls. 🤞this one works. 1.6.0-test.2

reverendalc commented 2 years ago

installed test

I may be the most confounding customer, as my Lincoln is also an EV, and in order of easiest to stupidest, it seems to go ford->Lincoln->EV

^[[37m[15/01/2022, 15:46:56] ^[[39m^[[36m[FordPass]^[[39m ^[[31mYou do not have authorization to access MKZ-h.^[[39m ^[[37m[15/01/2022, 15:46:56] ^[[39m^[[36m[FordPass]^[[39m ^[[90mUpdating info for MKZ-h^[[39m and later ^[[37m[15/01/2022, 15:47:23] ^[[39m^[[36m[FordPass]^[[39m ^[[31mYou do not have authorization to access MKZ-h.^[[39m ^[[37m[15/01/2022, 15:47:23] ^[[39m^[[36m[FordPass]^[[39m ^[[31mCannot get information for MKZ-h engine^[[39m ^[[37m[15/01/2022, 15:47:23] ^[[39m^[[36m[FordPass]^[[39m ^[[31mYou do not have authorization to access MKZ-h.^[[39m ^[[37m[15/01/2022, 15:47:23] ^[[39m^[[36m[FordPass]^[[39m ^[[31mCannot get information for MKZ-h lock^[[39m ^[[37m[15/01/2022, 15:47:23] ^[[39m^[[36m[FordPass]^[[39m ^[[31mYou do not have authorization to access MKZ-h.^[[39m ^[[37m[15/01/2022, 15:47:23] ^[[39m^[[36m[FordPass]^[[39m ^[[31mCannot get information for MKZ-h engine^[[39m ^[[37m[15/01/2022, 15:47:56] ^[[39m^[[36m[FordPass]^[[39m ^[[31mYou do not have authorization to access MKZ-h.^[[39m ^[[37m[15/01/2022, 15:47:56] ^[[39m^[[36m[FordPass]^[[39m ^[[90mUpdating info for MKZ-h^[[39m

Brandawg93 commented 2 years ago

Oof. Thanks for testing it! If I find anything else, I'll update here.

reverendalc commented 2 years ago

I'm not sure how you're inspecting network traffic from the app, but I'd be happy to snoop my LW app in the same manner that you're snooping yours and report back.

I believe that mine being an EV is shitting in the cereal, so to speak

Brandawg93 commented 2 years ago

Sure! I use mitmproxy to monitor the network calls.

  1. Install on computer
  2. Run mitmweb
  3. Go to settings > network > wifi on phone
  4. Turn on the proxy to manual and set it as the ip of you computer with port 8080
  5. Go to mitm.it on phone
  6. install profile
  7. Go to settigs > General > device management and install profile
  8. go to settings > about > go to the bottom and turn on mitm

Then you can see all the calls.

reverendalc commented 2 years ago

Interestingly, I can log into the LincolnWay app with my fordpass credentials. After digging around I found that there were a few minor differences in the network calls. 🤞this one works. 1.6.0-test.2

I’ll also add that I can log into FordPass, but cannot add my VIN

reverendalc commented 2 years ago

Ahh yes, I was using mitm when I was scoping it out last time. Did I share with you the endpoints which I recorded?

On Jan 15, 2022, at 9:10 AM, Brandon McFarlin @.***> wrote:

 Sure! I use mitmproxy to monitor the network calls.

Install on computer Run mitmweb Go to settings > network > wifi on phone Turn on the proxy to manual and set it as the ip of you computer with port 8080 Go to mitm.it on phone install profile Go to settigs > General > device management and install profile go to settings > about > go to the bottom and turn on mitm Then you can see all the calls.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.

Brandawg93 commented 2 years ago

I don't think so. I'm curious if they are the same.

reverendalc commented 2 years ago

I was surprised this morning to see an (inoperable, but) exposed MKZ in my HomeKit. That's neat. I'll hook up MITM again today if I can and report back with the web calls, I can't seem to locate where I recorded them.