iOS 5 Issues

25 views
Skip to first unread message

Alexander

unread,
Oct 19, 2011, 5:54:54 PM10/19/11
to SoundCloudAPI
Hey Guys,

I'm wondering if anyone else is having trouble with iOS 5. We've
recently upgraded some devices and now the authentication appears to
be failing. The same application with the same SoundCloud Library
works fine in iOS 4.

More specifically the API function in brackets below was called with
the error messages:

[soundCloudAPIDidFailToGetAccessTokenWithError]
NXOAuth2HTTPErrorDomain HTTP Error: 401 (null)

Does anyone have any insight?

Thanks!

Alex

Ullrich Schäfer

unread,
Oct 20, 2011, 6:11:31 AM10/20/11
to soundc...@googlegroups.com
Hello Alex,

We stumbled upon a difference between iOS 4 and iOS 5 regarding the handling of redirect URLs.
On iOS 4 a redirected request still contains the Authorized header field and one manually had to remove it if the request was redirected to a different domain or from HTTPS to HTTP.
In iOS 5 the Authorized header no get's removed by default, meaning that one needs to re-add it.

We updated the OAuth2 library and pushed a commit with the updated reference to github.

Please check if that fixes the issue you're having.

Except of this issue we're using the API wrapper on iOS 5 already.

If you still encounter the problem can you send me a charles log with the error to ull...@soundcloud.com

Thanks,
Ullrich

-- 
Ullrich Schäfer
iOS Team, SoundCloud



--
You received this message because you are subscribed to the Google Groups "SoundCloudAPI" group.
To post to this group, send email to soundc...@googlegroups.com.
To unsubscribe from this group, send email to soundcloudap...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/soundcloudapi?hl=en.


Reply all
Reply to author
Forward
0 new messages