[C# WPF] Problem getting access token after user Authorization

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!

I use the implicit flow in a few apps and cannot reproduce this. Are you still encountering the issue?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.