Every attempt I make to authenticate at Deezer is answered with the error message:
You must enter a valid redirect URI
The redirect URI set in my application settings is https://example.com/callback/deezer and the request I make looks something like:
https://connect.deezer.com/oauth/auth.php?app_id=xxxxxx&redirect_uri=https%3A%2F%2Fexample.com%2Fcallback%2Fdeezer&scope=basic_access%2Cemail&state=xxxxxx&response_type=code
The app_id value is correct. Any help?
you must set the "Application domain" as the url which the login script in connection from.
for example, if you're working on your localhost on this url: http://localhost:3000/index.html
just put the value localhost/index.html, without the port.
Related
After I login into Spotify and connect it with my app, an error comes up saying:
INVALID_CLIENT: Invalid Redirect URI.
I have registered my redirect URI with Spotify and ensured that it is the same one used in my code. I have created a URL type with the scheme from my redirect URI and a specific Identifier, but I am still getting the error. Any thoughts?
Be sure to have the redirect URL on Spotify match exactly the url used in the code. If the two URLs are different, the app will not work.
In addition, be sure that all your URL schemes are correct. Normally the error occurs when a URL scheme or the redirect URL are not entered correctly.
I need the following information for my app to work:
1) Client ID
2) Redirect URL
Setting up the app and creating an ID + secret code was easy. But I have no idea what to put as my redirect URL. I used localhost as my URL and I was able to sign into my google account but after I signed in I received Error: redirect_uri_mismatch
Screenshot
What can I do? How do I even create a redirect URL?
In the Developer Console credentials page (the one in your screenshot), add your redirect URI to the "Authorized redirect URIs" text field.
Ensure you're supplying the correct port and correct route your server is listening on too.
For example, in the Google API Console, the working redirect URI for me is
Your port and route all depend on your server setup (ie. look in your index.js if you're using Node). This working sample with port 5000 is from the example server code in the YouTube API NPM module readme.
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.
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.
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.