Answered

"connect.deezer.com" returns "Access Denied" for Server-side Flow

  • 12 June 2021
  • 6 replies
  • 73 views

Userlevel 1

I have an app with id = “264802” and redirect uri = “http://127.0.0.1:5000/callback

I follow the instruction on developers.deezer.com for server-side flow and form the first url like this:
https://connect.deezer.com/oauth/auth.php?app_id=264802&redirect_uri=http://127.0.0.1:5000&perms=basic_access,email

But it always returns me the error:

Access Denied

You don't have permission to access "http://connect.deezer.com/oauth/auth.php?" on this server.

Reference #18.d76ed417.1623522785.2cfe2139

Can you please help me to understand what I’m doing wrong?

icon

Best answer by Teoretic 23 June 2021, 00:51

@Rudi hi!

So apparently my “redirect_uri” was the route cause of the problem.
After contacting the support, they said that my “redirect_uri” seems to be invalid.

I’ve had it like “http://127.0.0.1:5000” (just as a localhost stub)
There was no application there, and I think it crashed getting the “code” for further flow (getting the access token with it).

So I’ve changed it to a “redirect_uri” that had a website running. And it helped - I was redirected there with “code” in answer.
And it solved my problem!

View original

6 replies

Userlevel 7
Badge +8

Hi there @Teoretic 

Thanks for reaching out to us here.

So that we don't relay wrong information as you're having a query around our API, please contact our devs directly - perhaps even via Twitter, from the website you mentioned above:

developers.deezer.com

They may take a bit of time to respond but they'll give you the right guidance.

Have a good week!

Userlevel 1

Hi @Rudi !
Thanks for the reply!
I’ve created the support request through developers.deezer.com and currently sorting things out with the support, fortunately they will help me to solve the problem.

Btw what do you mean about the “you're having a query around our API”?
I’m using only URLs that are provided on the official documentation here
https://developers.deezer.com/api/oauth
and on the pages regarding the objects (albums, tracks etc.)

Userlevel 7
Badge +8

I meant you're asking a question around specific developer tools we provide, I'm not an expert in the subject to tell you the right thing or to relay things properly - that's all @Teoretic :relaxed:

Once our support helps you out, would you mind sharing the conclusions here in the community so that it helps other users?

Userlevel 1

@Rudi got you, sure will write here the result, thank you for your help!

Userlevel 1

@Rudi hi!

So apparently my “redirect_uri” was the route cause of the problem.
After contacting the support, they said that my “redirect_uri” seems to be invalid.

I’ve had it like “http://127.0.0.1:5000” (just as a localhost stub)
There was no application there, and I think it crashed getting the “code” for further flow (getting the access token with it).

So I’ve changed it to a “redirect_uri” that had a website running. And it helped - I was redirected there with “code” in answer.
And it solved my problem!

Userlevel 7
Badge +8

Excellent! @Teoretic 

Great work. Keep us posted here in the community as well, if anything else comes up :relaxed:

Reply