Oauth2 External Browser Request - App Launches, Credentials received, Browser Not Updated

Posted by Michael Drozdowski on Stack Overflow See other posts from Stack Overflow or by Michael Drozdowski
Published on 2013-10-21T03:42:28Z Indexed on 2013/10/21 3:53 UTC
Read the original article Hit count: 170

Filed under:
|
|
|
|

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.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about osx