Oauth2 External Browser Request - App Launches, Credentials received, Browser Not Updated
- by Michael Drozdowski
I'm using an external browser request to authenticate myself with the SoundCloudAPI in OSX.
My app launches, and has a button that opens an external browser window to authenticate against SoundCloud. When I click "connect" in the new window, I get a "External Protocol Request" that is consistent with my custom launch URI scheme. Clicking this loads the app, and it gets the correct credentials.
The trouble is, the browser window never changes - it simply says that it's connecting forever. There is no "connection confirmed" alert coming from SoundCloud. I know I'm logged in because I can make the correct calls to the API to get things such as my username.
Why isn't the browser confirming the connection or dismissing?
The same thing happens if I load the authentication in an internal WebView in the app.