Bug: SoundCloud OAuth2 connection will fail if Re

2019-07-20 15:16发布

I'm getting an error while connecting to Sound API trought OAuth2.

This is the connection link I use:

https://soundcloud.com/connect?client_id=27e07408838149bc81b98928b76468f9&redirect_uri=http%3A%2F%2Fbeta.mydomain.com%2Fapd%2F%3Fmodule%3Dsoundcloud%26action%3Dreturn&response_type=code&consumer_key=28e07409898149a981b98928b76468f9

By clicking it I get redirected to:

http://beta.mydomain.com/apd/?module=soundcloud&action=return&error=redirect_uri_mismatch&error_description=The+redirection+URI+provided+does+not+match+a+pre-registered+value.

But the specified redirect_uri param (encoded) and the registered url (in the field Redirect URI) are exactly the same:

http://beta.mydomain.com/apd/?module=soundcloud&action=return

I don't know if there is anything wrong or there is any other restriction that returns the same error. Or maybe "Redirect URI" is not the applicable field. This should be enough.

(App name is bigpress) (Domain and consumer_key have been altered for security reasons)

UPDATE: Ok, I think I got it. After having done a dozen of checks... if redirect_uri includes the "&" character SoundCloud will always return this error.

0条回答
登录 后发表回答