While testing an application using the Deezer JavaScript SDK, I encountered an issue when trying to login as it prompted me with a "You must enter a valid redirect uri" message.
Here is the setup:
DZ.init({
appId: '000000',
channelUrl: 'http://localhost:13350/channel/channel.html',
player: {
onload: function (response) {
alert('register: DZ.player is ready');
}
}
});
For the login process:
DZ.login(function (response) {
if (response.authResponse) {
DZ.api('/user/me', function (response) {
alert('Good to see you, ' + response.name + '.');
});
} else {
alert('User cancelled login or did not fully authorize.');
}
}, { perms: 'basic_access,email' });
I'm wondering what steps I should take to successfully test the application. The channelUrl is configured as specified in the Application Domain settings.