I'm having trouble authorizing an account after following the steps listed at: https://developers.google.com/nest/device-access/get-started
The steps are:
- Register for the Device Access program >> Paid using a private account
- Activate a supported Nest device with a Google account. >> I can see my Nest devices when signing in to Google home or Nest using my private Google account.
- Create a Google Cloud Platform (GCP) project to enable the SDM API and get an OAuth 2.0 client ID. >> Used the "Enable the API and get an OAuth 2.0 Client ID" button and inserted the redirect URL when prompted. Verified everything looks right in the GCP console.
- Create a Device Access project to receive a Project ID. >> Used the OAuth client ID from step 3 when setting up
Used this URL to try and get an authorization code:
https://nestservices.google.com/partnerconnections/project-id/auth?
redirect_uri=https://www.google.com&
access_type=offline&
prompt=consent&
client_id=oauth2-client-id&
response_type=code&
scope=https://www.googleapis.com/auth/sdm.service
Yes, I replaced the project ID with that from the Device Access Console and the OAuth Client ID from Step 3. I select the Google account from steps 1 and 2.
I still get the error message in the browser that says:
Can't link to [project name]
I never get prompted to Allow the project to access my Google account (steps 3-5 here).
Thanks for the help.
When you use the built in copy function on the Google page, it copies this code:
But when you past into the browser there are spaces after each &. So you need to manually delete the spaces to actually use the right URL.