home-assistant / home-assistant.io

:blue_book: Home Assistant User documentation
https://www.home-assistant.io
Other
4.98k stars 7.29k forks source link

Cannot add Integration #30760

Closed nidd13 closed 10 months ago

nidd13 commented 10 months ago

Feedback

Hello,

I've tried various times the explanation of this site: https://www.home-assistant.io/integrations/google_tasks but always I am getting the following error:

Access blocked: This app’s request is invalid

my mail address You can’t sign in because this app sent an invalid request. You can try again later, or contact the developer about this issue. Learn more about this error If you are a developer of this app, see error details. Error 400: redirect_uri_mismatch

Error details:

Error 400: redirect_uri_mismatch

Sie können sich nicht in dieser App anmelden, weil sie nicht den Google-Richtlinien für OAuth 2.0 entspricht.

Wenn Sie der App-Entwickler sind, registrieren Sie den Weiterleitungs-URI in der Google Cloud Console. Request details: redirect_uri=https://my.home-assistant.io/redirect/oauth

What is the reason?

Best regards

URL

https://www.home-assistant.io/integrations/google_tasks/

Version

2024.1.2

Additional information

No response

home-assistant[bot] commented 10 months ago

Hey there @allenporter, mind taking a look at this feedback as it has been labeled with an integration (google_tasks) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `google_tasks` can trigger bot actions by commenting: - `@home-assistant close` Closes the feedback. - `@home-assistant rename Awesome new title` Renames the feedback. - `@home-assistant reopen` Reopen the feedback. - `@home-assistant unassign google_tasks` Removes the current integration label and assignees on the feedback, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information) to the feedback. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information) on the feedback.
allenporter commented 10 months ago

On the integration instructions steps under Generate Client ID and Secret see step #16 where you need to enter that url https://my.home-assistant.io/redirect/oauth as an authorized redirect url. It needs to be that exact url for "My Home Assistant" though sometimes people interpret it to mean their my assistant redirect url.

nidd13 commented 10 months ago

Hi @allenporter

it looks like this in my configuration: image

or am I totally wrong?

Thank you in advance!

allenporter commented 10 months ago

That screenshot looks correct. Is that the same credential and cloud project id? If any of that changed, you may need to delete from application credentials on the home assistant side. (See documentation for application credentials integration)

allenporter commented 10 months ago

(I'm now at a desktop computer) See https://www.home-assistant.io/integrations/application_credentials/

nidd13 commented 10 months ago

(I'm now at a desktop computer) See https://www.home-assistant.io/integrations/application_credentials/

That's it! I had some old credential stored in HA, thus it didn't asked me for the new ones. I deleted the old ones and were able to use the latest ones. Now it is working. Thanks a lot for your help!