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:
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:
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
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.