mirror of
https://github.com/requarks/wiki.git
synced 2026-03-02 22:06:55 -05:00
Twitch Login Strategy Error :: Parameter redirect_uri does not match registered URI #957
Labels
No labels
BETA
BETA
accessibility
backlog
bug
can't replicate
contrib-easy
contrib-hard
contrib-medium
deferred
documentation
duplicate
duplicate
editors
enhancement
invalid
localization
migrate
ui
under review
v3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wiki-requarks#957
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @b3ck on GitHub (Nov 26, 2019).
Originally assigned to: @NGPixel on GitHub.
Actual behavior
After adding in all of the correct information (from Twitch Dev Console) in the Twitch Strategy Module I tried to login and get the following error:
Parameter redirect_uri does not match registered URIExpected behavior
Log into Wiki.js with Twitch Username.
Steps to reproduce the behavior
Try to log in?
System Information:
Wiki.js:
Stable 2.0.12OS:
Ubuntu 16.04 x86_64DB:
PostgreSQL 9.5SSL Enabled:
Let's Encrypt@NGPixel commented on GitHub (Nov 26, 2019):
Make sure the redirect URI you entered in Twitch matches the one shown in Wiki.js in Admin > Authentication > Twitch in the reference panel.
@b3ck commented on GitHub (Nov 26, 2019):
It does match, I was looking at the code, for the Twitch strategy and it doesn't seem it's using the authorization URL or the scope like in the Discord strategy.. but then again.. I'm not a coder =/
Edit: I was able to get the Discord login to work, Twitch did update their API, so I don't know how recently you've made sure it works or not.
@b3ck commented on GitHub (Nov 26, 2019):
So I went into the
passport-twitchstrategy, and replaced the old authorization URLs with the new twitch api, now I need to figure out a way to fetch the user profile as that is my current error:Obviously this is going to happen since I totally switched to a different API, so more investigating is in order, I'll update you when I can.
@b3ck commented on GitHub (Nov 26, 2019):
Yeah.. I don't know what Twitch API you guys have this based on, there is v3, v5 and now the "New Twitch API" so.. I don't know.. getting kinda lost in all of these APIs so I'm going to stop for now, let me know if you come up with anything, thanks 😄👍
@b3ck commented on GitHub (Nov 27, 2019):
So I changed everything back to default and replaced
line 16in the/server/modules/authentication/twitch/authentication.jsfile;from:
callbackURL: conf.callbackURLto:
callbackURL: "https://wiki.b3ck.com/login/twitch/callback"And I am no longer getting the:
Parameter redirect_uri does not match registered URIerror.But now I am getting the:
failed to fetch user profileerror.Thoughts?
@b3ck commented on GitHub (Nov 27, 2019):
I found this, it might help : passport-twitch-new
@NGPixel would that be useful?
@b3ck commented on GitHub (Dec 10, 2019):
This shouldn't be marked as help, this is a bug. The Twitch Login Strategy is broken and needs to be fixed. Thanks.
@NGPixel commented on GitHub (Dec 10, 2019):
The help label is added automatically based on the issue type.
@b3ck commented on GitHub (Dec 12, 2019):
Ahh... Copy that so.. any progress on this issue?
@b3ck commented on GitHub (Jan 25, 2020):
Hello?