XanderStrike / goplaxt

Scrobble Plex plays to Trakt with ease!
MIT License
300 stars 35 forks source link

Oauth error #61

Open tonitonae opened 3 years ago

tonitonae commented 3 years ago

Hi!

I was just testing Plaxt and I face a problem when self-hosting.

With the instance provided, I am able to authorize Trakt and proceed to register the Webhook in Plex and scrobble. Everything runs smoothly.

However, when I try to go self-hosted I face a problem with Oauth. The steps I have followed are:

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

https://trakt.tv/oauth/authorize?client_id=MYID&redirect_uri=http://192.168.2.100:8000/authorize%3fusername=MYUSER&response_type=code

Am I missing something? Thanks for the help.

XanderStrike commented 3 years ago

What's the redirect URI set to in Trakt? Might be good to play with a few values there

tonitonae commented 3 years ago

Thanks for the prompt reply.

Where should I look into that? I mean, I did not configure any redirect URI. It is automatically added to the authorization query sent to trakt, as shown in the OP:

https://trakt.tv/oauth/authorize?client_id=MYID&redirect_uri=http://192.168.2.100:8000/authorize%3fusername=MYUSER&response_type=code

Maybe I am missing something and that's why it is not working?

Thanks!

XanderStrike commented 3 years ago

Trakt needs to know about your redirect URI, when you created your api credentials it asked for a redirect URI, make sure that's set to the public facing IP or URI of your instance of Plaxt

tonitonae commented 2 years ago

Ah, ok, I did not remember that. I just copied and pasted the suggested value:

urn:ietf:wg:oauth:2.0:oob

I do not know about the format of these URIs. How should I update it to reflect my needs?

Thanks again for your help.

dazzah87 commented 2 years ago

Sorry to hijack this issue but I get the same error as in the first post using plaxt.astandke.com.

I enter my Plex user name and then I get the following oauth error on trakt.tv: "The requested redirect uri is malformed or doesn't match client redirect URI." I'm not sure if it has anything to do with the recent changes or if Trakt has changed something or if it's an issue on my side.

Edit: Fixed now. As mentioned below, Trakt must've had a hiccup somewhere.

jrhbcn commented 2 years ago

I am also hit by this error, both on my self-hosted and using plaxt.astandke.com. I think Trakt might have changed something here.... :?

CyberOxide commented 2 years ago

I am also getting this error: OAUTH ERROR The requested redirect uri is malformed or doesn't match client redirect URI.

jrhbcn commented 2 years ago

Just in case anyone else is struggling with this. Creating a new application API and copy back the ID and secret did the trick for me.

XanderStrike commented 2 years ago

Sorry just saw this, the hosted version seems to be working now though without any changes. I wonder if they just had an outage or pushed bad configuration? Wouldn't be the first time it happened.