David Owen Greenberg
David Owen Greenberg

Reputation: 25

Dailymotion: This `redirect_uri' ([URL]) isn't allowed by `client_id' configuration

I am working with the Dailymotion SDK for PHP:

https://github.com/dailymotion/dailymotion-sdk-php

Specifically, I am following the instructions here as a test:

https://github.com/dailymotion/dailymotion-sdk-php#authorization-grant-type

When I try to run this code, with the API Key and Secret that I generated, I am getting the following error:

This redirect_uri' ([URL]) isn't allowed byclient_id' configuration.

Where [URL] is the specific application URL from which I am invoking my code.

Looking at the configuration for my application in Dailymotion, I see that the "Application Website" is the same as [URL], there is no discrepancy.

I am not seeing any settings or configurations issue to suggest that this URL would not be allowed.

Any thoughts, ideas or suggestions as to why this wouldn't work as such?

Upvotes: 1

Views: 599

Answers (1)

dailymotion
dailymotion

Reputation: 1596

You set a callback url when you create an API key at http://www.dailymotion.com/settings/developer For security reason, only redirect_uri starting with the callback URL provided are accepted, otherwise the api returns the error message you mention.

If your redirect_uri has to contain a dynamic part, you can use a slug this way when you specify your application callback URL: http://www.example.org/callback/[]. The part becomes the dynamic part.

Without more details on the urls used, it's hard to tell more, but setting the proper "callback url" in the api key you're using should make it.

Upvotes: 1

Related Questions