Dailymotion Callback URL Error - dailymotion-api

I am trying to connect to the Data-API by using the PHP-SDK.
I have configured an API-Key. But when trying to connect an exception is thrown. Message:
This redirect_uri' isn't allowed byclient_id' configuration.
I suppose that somehow the callback URL is not correct.
Any help is appreciated.

Regarding the redirect_uri, if is stated at https://github.com/dailymotion/dailymotion-sdk-php/blob/master/Dailymotion.php#L196 that:
"if using authorization grant type, this key can be provided. If omitted, the current URL will be used. Make sure this value stays the same before the user is redirect to the authorization page and after the authorization page redirects to this URI (the token server will change this)."
You should also make sure that this value matches the "callback url" you defined when creating the api key at http://www.dailymotion.com/settings/developer . It not matching, it will trigger the error you mentioned.

Related

Error 'Invalid authorization request' on preauthenticating Exact Online

Using cloud.invantive.com I am preauthenticating a connection to Exact Online using the OAuth2 Code Grant Flow. I have entered the client ID, the associated client secret and checked deviating redirect URI.
On clicking the Preauthenticate button, I get the following error without entering a username/password first:
Invalid authorization request
The URL on top is like:
https://start.exactonline.nl/api/oauth2/auth?response_type=code&client_id=4...stuff...b&redirect_uri=https%3A%2F%2Fcloud.invantive.com%2FUtilities%2FSettings&state=d...stuff...8
The error text does not give a clear hint, but in this case I had forgotten to replace the contents of the redirect URI by the value of the redirect URI given on the Exact Online app center on the app with the client ID used.
After correcting the redirect URI, I was presented with a login form. After entering credentials I got my refresh token.

Google auth redirect_uri no longer authorized even when the same uri is placed in settings

I'm getting a redirect uri error for google authentication even when I've already placed the EXACT url in the google dev console config settings. Anybody know what could trigger such an error?
Below are screenshots of the error. I have the exact uri authorized in the settings yet trying to authenticate leads to a redirect_uri error!
I just figured this out. If you're ever as dumb as me and your google app has multiple client IDs you could be using a different client ID for authorization then the one you're setting your redirect uri to. When you're changing the redirect uri, check to see if you have another client_id and set the redirect_uri for that.

Why do I get a redirect URI mismatch when trying to log into Box?

When using the Box SDK for iOS to do OAuth, I am shown a webpage with this error:
Error: redirect_uri_mismatch
response_type=code
redirect_uri=boxsdk-our4iypzazstfpx8j70e8tlc3eyn9c4l://boxsdkoauth2redirect
state=ok client_id=our4iypzazstfpx8j70e8tlc3eyn9c4l
I used the code that they suggested:
[self
presentViewController:[[BoxAuthorizationViewController alloc]
initWithAuthorizationURL:[[BoxSDK sharedSDK].OAuth2Session authorizeURL]
redirectURI:nil
]
animated:YES
completion:nil
];
My client ID and client secret are set prior to this. In my info.plist file, I have boxsdk-our4iypzazstfpx8j70e8tlc3eyn9c4l as a URL scheme. The only instruction I could not follow is:
Note: When setting up your service on Box, leave the OAuth2 reditrect
URI blank. The SDK will provide a custom redirect URI when issuing
OAuth2 calls; doing so requires that no redirect URI be set in your
service settings.
When I attempt to leave the redirect URI blank and save the form in the developer console, I get the this error:
OAuth2 redirect URL must specify a valid URL and must not be http://
So I am forced to input something. I have inputted "https://mydomain.com" (with my real domain). I modified the iOS code to pass that URI into the BoxAuthorizationViewController, but I still get the same error webpage.
Sorry, this was a mistake in our documentation. It should work if you enter boxsdk-YOUR_CLIENT_ID://boxsdkoauth2redirect into the developer console for your redirect_uri, replacing YOUR_CLIENT_ID with your actual client ID.

Specify QueryString Parameters in redirect_uri

I have implemented Signup with facebook functionality, its working fine, now I have to specify a parameter in redirect_uri, I have specified it but when I am accessing FB, Its giving error:
(OAuthException) Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request
If my redirect_uri is this
http://localhost:5000/SignUp/FBOAuth
it works fine,but when I specify parameter like this(this parameter can have null value)
http://localhost:5000/SignUp/FBOAuth?CheckOut=
or
http://localhost:5000/SignUp/FBOAuth?CheckOut=
It starts giving error, Is it possible to specify parameters in redirect_uri? I have read on facebook developer's site that its a bug, Here

while authenticating with foursquare, it returns 'invalid_request'

It is clear to me that this error is because of the wrong redirect_uri I have used. But what should I use for redirect_uri ? I just created an application in FourSquare, and I got the consumer token and consumer secret. I filled in a URL in the callback URL field. Now when I pick up this URL and set it as my redirect_uri, it is still invalid.
Can tell me how exactly should this be used? I found out that with OAuth2.0, you need to register the redirect_uri for safety of the user. Now how do I do that registration?
Your callback URL is the "redirect_uri". Make sure you've URI-encoded the parameter and that you haven't changed the url scheme by mistake (http vs https)

Resources