Skip to content

Obtaining Tokens (As of 25 05 2024)

SquidBytes edited this page Jun 28, 2024 · 13 revisions

New Login Flow

This new method does require some manual input, including using browser tools!

Warning

Although I have tested this locally, I can't guarantee the method will last as Ford are consistently making changes!

Note

This requires the 1.70 branch as this has not been fully detected you will need to manually grab the files to test

Step 1:

  1. In Home Assistant: Enter your Fordpass username and choose the region you are from

image

Step 2:

  1. Copy the URL that has been generated and visit it in your browser.

Important

Ensure you have Developer tools enabled before pressing "log in" as you will be required to capture a header once logged in!
🔗 Chromium based dev tools helper (Chrome / Edge)
🔗 Firefox dev tools helper

image

  1. Log in to your Ford account

  2. Using the browser tools select the Network tab of the web console and view the headers section.

    • You are looking for the contents of the "Location Header" as shown in the pic below

      (Make sure you copy the raw output and not the wrapped text)

    • The output should look similar to the following string, starting with fordapp://:
    • fordapp://userauthorized/?code=eyJraWQiOiItSm9pdi1OX1ktUWNsa***************************
  • Ensure you capture the entire string and enter it into the text box.

Note

The website will not fully load. The login page will just continue to spin. It is at this point you are able to obtain the code by using the browser tools.

webrequst

Step 3:

  • Once you've entered the token, the integration should go off and get you a new set of tokens and then ask what vehicles you want to add.