Problem
When authorizing the plugin with your own custom App, you get a redirect URI error. The exact wording depends on the cloud provider, for example:
- NextCloud / ownCloud / S3 (Synkivo): Settings → Security → OAuth 2.0 apps → your client
-
Google Drive:
404 Error: redirect_uri_mismatch -
OneDrive / SharePoint:
AADSTS50011: The redirect URI specified in the request does not match... -
Dropbox:
404 Invalid redirect_uri -
Box:
redirect_uri_mismatchor similar OAuth error referencing the redirect URI
Cause
The OAuth redirect URI configured in your custom App at the cloud provider doesn't match the URI the plugin sends during authorization. Cloud providers require an exact match (down to trailing slashes and protocol) for security reasons.
This can happen because:
- You didn't add the redirect URI to your custom App, or added a slightly different value.
- The plugin's redirect URI changed after a plugin update (this has happened in past releases).
- Your WordPress site URL changed (HTTPS migration, domain change, www added or removed) but the redirect URI in your custom App was not updated.
Solution
- In the plugin's settings page, go to the Advanced tab → API Application → Use Custom App.
- Copy the current OAuth 2.0 Redirect URI value shown there.
- Open your custom App at the cloud provider's developer console:
- Google Cloud Console → your project → APIs & Services → Credentials → your OAuth client
- Microsoft Entra Admin Center → App registrations → your App → Authentication
- Dropbox App Console → your App → Settings
- Box Developer Console → your App → Configuration
- Paste the copied URI into the Authorized redirect URIs (Google, OneDrive) or Redirect URIs (Dropbox, Box) field. If a different URI is already listed, replace it or add the new one alongside.
- Save the configuration at the provider.
- Try authorizing the plugin again.
Related articles
- I get an 'Invalid client' error when authorizing the plugin
- Custom App creation guides: Google Drive, OneDrive, Dropbox, Box