Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

oAuth Redirect URI setup

Answered
New post

Comments

6 comments

  • kendomen

    For JWT, there is none since the authorization step is done by the enterprise admin.

    0
    Comment actions Permalink
  • sids

    I am not sure I understand your response, let me explain what I am trying to achieve. May be I am doing it wrong.

    1> We have an application in which a user can integrate with their box account

    2> I have a link in our application, when the user clicks the link the system should navigate to box login and after the user is authenticated I expect the box to redirect back to the application with a code (that will be used to generate a token). The URL is https://account.box.com/api/oauth2/authorize?response_type=code&client_id={}&redirect_uri={}&state=box.

    Currently when the browser navigates to above URL I am getting an error on the navigated box page 

    Error: redirect_uri_mismatch 

     Show Error Details
    • response_type=code
    • redirect_uri={}
    • state=box
    • client_id={}

      I do not see any attribute to set the redirect URI in the Configuration tab on Box admin page?

     

    0
    Comment actions Permalink
  • kendomen

    i think in that case, you need to select "Standard Oauth2.0 (User Authentication)".  Then you'll be able to put a redirect url in the app.

     

    oauth.png

    0
    Comment actions Permalink
  • sids

    That did work, Thank you.

     

    I want to blame it on the box UI, I didn't see it as an option 😉

    0
    Comment actions Permalink
  • jonasalmeida1

    What about when the redirect uri needs to point to RStudio running on a cloud deployment? How to I set redirect_uri in box_auth to something else than localhost?

    1
    Comment actions Permalink
  • Melissa Lee

    Hi, I'm wondering how you figure out what the redirect uri should be when you put it in the configuration for the app?

    0
    Comment actions Permalink

Post is closed for comments.