I am currently building a desktop app in C# WPF and am trying to authorize a user with the Implicit Grant Flow. To do this, I’m opening a new Window with a WebBrowser control set to go to the OAuth URL, which it does w/o issue. The problem begins when a user clicks the Authorize button. Instead of being redirected back to the redirect_uri (http://localhost) with the access_token parameter, the user is being sent to https://api.twitch.tv/kraken/oauth2/allow where it stops.
If the application is already authorized, it does go to the correct URL immediately with the access_token parameter.
Obviously asking a user to authorize twice is a bit hacky. Has anyone encountered this issue before and/or maybe has some insight into why this is happening and/or how to fix it?
Thanks for your time!