Skip to main content

I found the following link today.
https://medium.com/box-developer-blog/oauth-2-0%E3%83%AA%E3%83%80%E3%82%A4%E3%83%AC%E3%82%AF%E3%83%88uri%E3%81%AE%E5%A4%89%E6%9B%B4-910fc5cac7b1



The redirect URL of the existing application is set to "http://127.0.0.1".
(The port number is random each time)


BOX1_4YRx2rN2Py6qh8EuAYfNHg.png


When I created a new application and set the redirect URL to "http://127.0.0.1" and executed it, it became "Error: redirect_uri_mismatch".
If this is the case, it will expire and existing apps will not work.


How can I fix the redirect URL?


thank you.

I tried various things.
As a result, it works with "http://127.0.0.1:80/".


If this is wrong, please let me know.


thank you.


Yes - the redirect uri sent in via the auth api call must match a uri in the developer console configuration of the application. 


Alex, Box Developer Advocate


Hi Alex, I'm having a similar problem and I'm wondering what you mean by the 'uri in the developer console configuration of the application'? Where to do find this information? 


Hi, we're having the exact same issue. Thanks to box_test2, 'http://127.0.0.1:80/' works here as well, but isn't it wrong when the (local native) app is actually listening at random ports most likely not at 80?


Where in the UI is this configured. It doesn't seem to be an option in the OAUTH2 settings as has been indicated elsewhere.


I am also facing the same issue , where in UI this can be configured?


You can no longer configure it fully and based off of my experience. Someone also calls this out according to this thread: Error: redirect_uri_mismatch – Box Support. What i mean by partially is that within the Apps configuration tab within the Developer Console you can add a redirect in this section: 


OAuth 2.0 Redirect URI, however Box.com configures the rest and it has the Http:127.... in it. 

Reply