Welcome to the new Box Support website. Check out all the details here on what’s changed.

how does the first leg of Oauth work when using 'http://localhost/blah' in the app's redirect uri?

Answered
New post

Comments

2 comments

  • pgoldweic

    OK, I figured this out already. I had imagined that Box would be 'smart' enough to figure out the address of my hostname when using 'localhost' in the redirectURI, but this is obviously not what happens, and I really needed to have the code running on 'localhost:port' for it to work. Once I did this, it worked as expected.

    0
    Comment actions Permalink
  • rocks

    Glad that you managed to get to the bottom of this.

     

    here is a little bit more about the "redirect_uri" field from our developer.box.com reference documents

     

    Redirect_Uri - An HTTPS URI or custom URL scheme where the response will be redirected. Must be https and also be registered within the Box app management console. In development, local http hosts are also accepted as outlined in the tutorial below

    Tutorial: https://docs.box.com/docs/oauth-20

    0
    Comment actions Permalink

Please sign in to leave a comment.