RyanBayne / TwitchPress

TwitchPress is a system of plugins that combines the power of Twitch.tv with WordPress
http://twitchpress.wordpress.com
GNU General Public License v3.0
12 stars 6 forks source link

Handle Mismatched Redirect URI Better #308

Open RyanBayne opened 5 years ago

RyanBayne commented 5 years ago

We currently land on the home page of WP when Twitch.tv rejects an oAuth2 request due to the redirect URI being a mismatch. We can improve this by detecting the error=redirect_mismatch and displaying a notice. This would include checking the state value and matching transient for security/flood prevention.

http://localhost/twitchpress/branches/beta/?error=redirect_mismatch&error_description=Parameter+redirect_uri+does+not+match+registered+URI&state=31188167510462