callback not happening

4 views
Skip to first unread message

arom

unread,
Oct 23, 2009, 8:52:45 AM10/23/09
to SoundCloudAPI
Hi all

I've registered my application and can authenticate fine but always
get the auth token displayed on screen with the message "Please copy
and paste the following code into the form provided by the
application: "
no matter what callback url I assign in the settings for my app.

The docs say "When the token has been authorized and if the callback
parameter has been set, or the client application was registed with a
callback url the browser is redirected to that url with the request
token appended:" but that's not happening.

Is there something else I need to do to cause the callback?

Thanks
Ian

Hannes Tydén

unread,
Oct 23, 2009, 9:31:37 AM10/23/09
to soundc...@googlegroups.com
On Fri, Oct 23, 2009 at 2:52 PM, arom <tallands...@gmail.com> wrote:
> Hi all
Hi!

Actually the documentation is wrong on that point. This is only valid
when you use OAuth 1.0. When using 1.0a, which is the default in most
of the later libraries, a callback parameter must be sent when getting
the request token. This defaults to "oob" (out of bound) in most
libraries and therefore you must set it explicitly when getting the
request token.

Sorry for the confusion. Thanks for making us aware of the documentation error.

Cheers,
Hannes


--
Hannes Tydén
Developer, SoundCloud

Mail: han...@soundcloud.com
Skype: hannestyden
Phone: +49 157 7471 6101
Fax: +49 30 8187 8724
Auguststrasse 5a, 101 17, Berlin, DE

What is SoundCloud?
http://soundcloud.com/tour

arom

unread,
Oct 24, 2009, 9:50:59 AM10/24/09
to SoundCloudAPI

Thanks a lot Hannes, that's great. The callback is working fine now


On Oct 23, 2:31 pm, Hannes Tydén <han...@soundcloud.com> wrote:

PercussionLab

unread,
Dec 6, 2009, 8:03:47 PM12/6/09
to SoundCloudAPI
Hey guys - i'm having the same issue but I'm definitely passing an
"oauth_callback" parameter in the request token url!

Using the Soundboard app as an example - my app is never redirected to
the access_token controller...

The code i'm using:

authorize_url = "http://#{$sc_host}/oauth/authorize?oauth_token=#
{$request_token.token}&oauth_callback=#{callback_url}&display=popup"
redirect_to authorize_url

Anything else I should look into? My SC-Connect JS code is identical
to that as the soundboard example.

PercussionLab

unread,
Dec 8, 2009, 4:43:37 PM12/8/09
to SoundCloudAPI
So the solution was to place the callback NOT in the authorize_url but
in the consumer.get_request_token call!

of course theres a new issue but i'll post about it in a more relevant
thread.
Reply all
Reply to author
Forward
0 new messages