01-21-2025 13:11
01-21-2025 13:11
I try to figure out how to get the fitbit integration in home assistant to work. The issue I have is that an link to my fitbit app is created and opened but the redirect_uri parameter is not accepted
Developer information: invalid_request - Invalid redirect_uri parameter value
The link is like this: https://www.fitbit.com/oauth2/authorize?response_type=code&client_id=********&redirect_uri=https://m...
Setting the redirect_uri to "https://my.home-assistant.io" is a home assistant feature to get https for a server that is hosted on the local network where TLS is not always setup. Why is that not accepted by the fitbit server?
Answered! Go to the Best Answer.
01-21-2025 18:04
01-21-2025 18:04
Hi @guzzzt
The redirect URL should be an open endpoint where the authorization code can be accepted and processed. Is that the case with https://my.home-assistant.io or is there another endpoint? Also, https://my.home-assistant.io needs to be listed in your application settings at https://dev.fitbit.com/apps.
01-21-2025 18:04
01-21-2025 18:04
Hi @guzzzt
The redirect URL should be an open endpoint where the authorization code can be accepted and processed. Is that the case with https://my.home-assistant.io or is there another endpoint? Also, https://my.home-assistant.io needs to be listed in your application settings at https://dev.fitbit.com/apps.
01-21-2025 23:52
01-21-2025 23:52
Thank you, changing the redirect URL to https://my.home-assistant.io/redirect/oauth on https://dev.fitbit.com/apps fixed it for me.
01-25-2025 01:37
01-25-2025 01:37
An OAuth2 issue with Home Assistant integration could stem from incorrect client credentials, mismatched redirect URIs, or insufficient permissions granted during the authentication process.