Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Vikramkakkar
8 years agoExplorer | Level 4
OAuth Redirect URL doesn't allow Me to test it with subdomain
i facing issue invalid redirect url i am having sub domin application. my domain is tixio.io and user has there own company and then they can login using there company name teamlance.tixio.io, t...
- 8 years ago
The OAuth 2 spec requires that the redirect_uri values associated with an app be explicit. This means you either need to include a separate redirect_uri for each subdomain, or use a single explicit one. In scenarios like you describe where the subdomain is dynamic, we recommend encoding an identifier in the `state` parameter that will be returned as part of the OAuth redirect. You can then use that same value to map the OAuth response to the appropriate subdmain.
If you are testing locally, you will want to use a redirect_uri that includes `localhost`. This would be the URL domain in your browser window when testing locally. Make sure your app configuration (accessible via https://www.dropbox.com/developers/apps ) has the localhost URL included in the `redirect_uri` list.
For more information on setting up your OAuth 2 flow, I recommend reading our OAuth guide.
DBX_Robert
Dropbox Staff
8 years agoThe OAuth 2 spec requires that the redirect_uri values associated with an app be explicit. This means you either need to include a separate redirect_uri for each subdomain, or use a single explicit one. In scenarios like you describe where the subdomain is dynamic, we recommend encoding an identifier in the `state` parameter that will be returned as part of the OAuth redirect. You can then use that same value to map the OAuth response to the appropriate subdmain.
If you are testing locally, you will want to use a redirect_uri that includes `localhost`. This would be the URL domain in your browser window when testing locally. Make sure your app configuration (accessible via https://www.dropbox.com/developers/apps ) has the localhost URL included in the `redirect_uri` list.
For more information on setting up your OAuth 2 flow, I recommend reading our OAuth guide.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!