You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
admsho
2 years agoExplorer | Level 3
Api error access denied
hi everyone, am trying to use the new API of Dropbox, but I am having some difficulties. I did however create an app console on personal free dropbox ACC, and I got the needed information (Appkey, Ap...
admsho
Explorer | Level 3
hi, Thank you for your feedback,
am still not sure what should be the loop URL, but I put it back as it is original shape , and I placed my App key instead of the "xxxxxxx", so I have the code header like that:
private const string ApiKey = @"xxxxxxxxxxx";
private const string LoopbackHost = "http://127.0.0.1:52475/";
private readonly Uri RedirectUri = new Uri(LoopbackHost + "AUTHORIZE");
// URL to receive access token from JS.
private readonly Uri JSRedirectUri = new Uri(LoopbackHost + "TOKEN");//
but I get the following we page result:
I'm not sure what do I miss, especially that I don't know where should I place the "App Secret"
please explain with more details if it is possible
Здравко
2 years agoLegendary | Level 20
admsho wrote:...
private const string LoopbackHost = "http://127.0.0.1:52475/";...
but I get the following we page result:
...
Hi again admsho,
The result you got shows that your LoopbackHost value isn't registered In the OAuth2 RedirectURIs list of your application. Something mandatory and noted in documentation but skipped by you (something noted in the error message itself). Register your LoopbackHost value there and that error message will gone.
admsho wrote:..., especially that I don't know where should I place the "App Secret"
...
With this very basic authentication way, you're using (used in the example), you don't need the "App Secret" actually. It would be needed only when/if you use authentication with code in non PKCE flow (PKCE uses dynamic secret and doesn't need App Secret or least it's not mandatory there). The flow used isn't recommended in production cause some security weaknesses. The best supported case is PKCE authentication flow, with access type set to offline (refresh token usage), something I advised you to move to.
Hope this sheds additional light.
Edit: Opp... My mistake. You should register RedirectUri value instead of LoopbackHost (i.e. http://127.0.0.1:52475/authorize ) - the actual passed value.
- admsho2 years agoExplorer | Level 3
hi, Thank you for your patience, It works and it asked me to allow access to my business ACC, but then it shows that. do I need to have a public IP??
- admsho2 years agoExplorer | Level 3
all my firewalls are off,
- Здравко2 years agoLegendary | Level 20
admsho, Seems you have changed more things than you have declared. 🙂 Where those address comes from?
Actually does your code handles that address or you're skipping it? 😉
- admsho2 years agoExplorer | Level 3
I replacesd "XXXXX" with the key, i think I must use som other URL rather than my localhost?
About Discuss Dropbox Developer & API
Make connections with other developers
797 PostsLatest Activity: 2 days agoIf 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 or Facebook.
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!