addons icon indicating copy to clipboard operation
addons copied to clipboard

Error 400: invalid_request

Open greghesp opened this issue 3 years ago • 5 comments

Describe the issue you are experiencing

Whe trying to request an auth code, the Google Auth page says

Error 400: invalid_request

You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure.

You can let the app developer know that this app doesn't comply with one or more Google validation rules.
Request Details
The content in this section has been provided by the app developer. This content has not been reviewed or verified by Google.
If you’re the app developer, make sure that these request details comply with Google policies.
redirect_uri: urn:ietf:wg:oauth:2.0:oob

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

Which add-on are you reporting an issue with?

Google Assistant SDK

What is the version of the add-on?

2.5.0

Steps to reproduce the issue

  1. Open WebUI
  2. Click Get a Code from Google

Anything in the Supervisor logs that might be useful for us?

No response

Anything in the add-on logs that might be useful for us?

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[16:47:57] INFO: Installing/Updating service client_secrets file
[16:47:57] INFO: Starting WebUI for handling OAuth2...
[05/May/2022:16:47:57] ENGINE Listening for SIGTERM.
[05/May/2022:16:47:57] ENGINE Listening for SIGHUP.
[05/May/2022:16:47:57] ENGINE Listening for SIGUSR1.
[05/May/2022:16:47:57] ENGINE Bus STARTING
[05/May/2022:16:47:57] ENGINE Started monitor thread 'Autoreloader'.
[05/May/2022:16:47:57] ENGINE Serving on http://0.0.0.0:9324
[05/May/2022:16:47:57] ENGINE Bus STARTED

Additional information

I'm loading the authorisation page up from my local HA IP address. This isn't an authorised URL in the Google Project as you cant add local IP addresses. I have added the Nabu Casa address in there, however I cannot access port 9324 from Nabu Casa

greghesp avatar May 05 '22 16:05 greghesp

Update: This is caused because my Google Project was pushed to production for the Nest SDM integration. I reverted it back to testing and could complete the auth flow. I've since pushed this back to production.

It's not a solution, but a workaround and the auth flow should probably still be made compliant

greghesp avatar May 05 '22 16:05 greghesp

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jun 22 '22 10:06 github-actions[bot]

This problem is back! Due to this: https://developers.googleblog.com/2022/02/making-oauth-flows-safer.html?fbclid=IwAR3aK9n0TEFUH3sgktrrXK47t1CQnlpHBWa8eTksnSYMkKcEYuLeW2gLuYs

maxi1134 avatar Jun 26 '22 15:06 maxi1134

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 26 '22 16:07 github-actions[bot]

PRoblem still present

maxi1134 avatar Jul 26 '22 17:07 maxi1134

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 25 '22 17:08 github-actions[bot]

Problem still present

maxi1134 avatar Sep 01 '22 17:09 maxi1134

problem is here, can someone take care of it, please?

tjmaru avatar Oct 05 '22 15:10 tjmaru

Also running into the problem

amosyuen avatar Apr 20 '23 22:04 amosyuen

The problem is still unsolved

Term1t3 avatar Oct 29 '23 19:10 Term1t3

Problem still unsolved

MiskaWasTaken avatar Dec 11 '23 12:12 MiskaWasTaken