Closed mkanet closed 6 months ago
Hi @dylandoamaral did you confirm that this is a bug? I'm not sure what to try next.
Hello @mkanet first thank you because your issue is very precise and clear.
To be honest, many people have this kind of issue, but it is hard for me to debug because I can't reproduce it in my environment.
The only thing I can advise you, is to use in the trakt website the redirect URI "https://my.home-assistant.io/redirect/oauth" just to try.
There are many closing issues about this subject, such as https://github.com/dylandoamaral/trakt-integration/issues/31. I hope it will work for you.
Didn't have much time, but I will try to refocus on the project soon.
Thank you for responding. I'll take a look at https://github.com/dylandoamaral/trakt-integration/issues/31 and try some of the suggestions there. Hopefully one of the suggestions help me to get this working.
Thank you so much @dylandoamaral I used the redirect url: https://my.home-assistant.io/redirect/oauth from https://github.com/dylandoamaral/trakt-integration/issues/31 It prevented the OAUTH ERROR; and, said successfully authenticated and added respective trakt sensors with respective attributes to Home Assistant*
Hopefully, this issue that I opened might help someone in the future.
Thank you again for your time and help.
Hi, thank you for all your hard work maintaining and supporting this great integration.
Home Assistant URL: My home assistant instance is accessible from anywhere in the world (including from within my LAN) via
https://homeassistant.mydomain.com
(I renamed my actual domain name). There are several users in my family that access this Home Assistant instance via their mobile companion apps (using the same URL as above). It also works great via web browsers.On the trakt website, I have the redirect uri set to:
https://homeassistant.mydomain.com/auth/external/callback
. I have also triedhttps://homeassistant.mydomain.com:443/auth/external/callback
(per this repo's readme).ISSUE: When I try to add the trakt integration via Home Assistant config_flow; specifying my trakt
client_id
andclient_secret
, it tries to open the below URI in my web browser _(I renamed _clientid and state values in the URI below)_:...in the web browser it displays:
I am not sure why the redirect_uri displayed in the web browser's address bar:
https://my.home-assistant.io/redirect/oauth
(see above) does NOT match the one I specified on the Trakt website:https://homeassistant.mydomain.com/auth/external/callback
. I am guessing that this clue has something to do with the issue.configuration.yaml
My NGINX configuration below has worked flawlessly for many years with countless integrations and addons without any access-related issues; even websockets are handled correctly. I am really hoping you might know what I'm missing.
NGINX config:
proxy.conf:
One more important clue: On the trakt website, if I click on the green Authorize button below...
...it will try to open the URI below in my web browser:
...and display only the following text in the web browser: Missing state parameter
PS: There are no errors or warnings in my home assistant log when trying to add the integration via config_flow.