dylandoamaral / trakt-integration

A Trakt integration for Home Assistant compatible with upcoming media card
MIT License
30 stars 12 forks source link

No method works for authorization #84

Open Efunch opened 9 months ago

Efunch commented 9 months ago

To the best of my knowledge, I've followed all of the directions, but I can't get the integration to authorize with Trakt. I tried with my direct url to HA and then tried the work-around method, but couldn't successfully authorize either way.

Efunch commented 9 months ago

I'm running HA OS and have no other issues with my setup at all.

Efunch commented 9 months ago

trakt_tv: language: en # Prefered language for movie/show title timezone: America/Chicago # Prefered timezone sensors: upcoming: show: days_to_fetch: 90 # How many days in the future you want to fetch max_medias: 3 # How many medias you want to fetch new_show: days_to_fetch: 90 max_medias: 3 premiere: days_to_fetch: 90 max_medias: 3 movie: days_to_fetch: 90 max_medias: 3 dvd: days_to_fetch: 90 max_medias: 3 next_to_watch: all: max_medias: 40 only_aired: max_medias: 40 only_upcoming: max_medias: 40

Efunch commented 9 months ago

trakt error

TRAKT OAUTH ERROR The requested redirect uri is malformed or doesn't match client redirect URI.

dylandoamaral commented 9 months ago

Did you follow this: https://github.com/dylandoamaral/trakt-integration#workaround ?

Efunch commented 9 months ago

Yes, I did. It seems to try to redirect to HA, but it's as if some kind of information is missing. The HA my.home-assistant.io/ page says 'invalid parameters given'.

Trakt Authorization error

Efunch commented 9 months ago

I can also change my HA link(10.0.0.25:8123) on the 'my.home-assistant.io/' page to '10.0.0.25:8123/oauth, but the page drops the /oauth part every time I try to update the new link. I can make a link to anything other than the oauth part of my HA.

HA Link Page Error Part 1

HA Link Page Error Part 2

HA Link Page Error Part 3

tunisiano187 commented 7 months ago

I have a problem that result in the same problem. Once the redirection works, i get this mesage (in the dev console) "Invalid flow specified" and no solution to go futher

MJBarry9 commented 7 months ago

I'm having the same issue. Invalid parameters with the normal setup and the workaround.

derekoharrow commented 5 months ago

Any update on this at all? Tried setting it up today, using the workaround. I've added the app to Trakt, added the trakt integration via HACS and then put in my client id and secret. It goes through the authentication process and says authenticated and setting up trakt, but in the integration it doesn't have any devices or entities. I've setup the trakt application to use https://my.home-assistant.io/redirect/oauth and in my.home-assistant.io I've tried setting it to both the public DNS name for my HASS site and also for the internal DNS name and even the internal IP address - same result...

dylandoamaral commented 5 months ago

No sadly I can't reproduce it thus can't fix it. If you are willing to put some time, you could change the files yourself to see how to resolve it.

derekoharrow commented 4 months ago

No sadly I can't reproduce it thus can't fix it. If you are willing to put some time, you could change the files yourself to see how to resolve it.

Sadly, I'm not a developer so I think that would be beyond me. I'm more than happy to help with testing, debugging, providing logs, etc. though.