Skip to main content

Error on CLI login


CLI installation

and command line

Box login -n example_name > error as below

How can I solve this error?

Redirect URI = http://localhost:3000/callback

client id and client secret may be correct.


Error: redirect_uri_mismatch


Show Error Details


5 replies

rbarbosa Box
  • Developer Advocate
  • 553 replies
  • January 9, 2024

Hi @user155 , welcome to the forum


Please check your application configurations especially the redirect url, the configurations in the cli must match the app in the developer console.


Also there is a great guide on this subject, take a look here:




Cheers


  • Author
  • New Participant
  • 2 replies
  • January 9, 2024

Hello Rbarbosa


I’d just followed the guidance as you attached URL



rbarbosa Box
  • Developer Advocate
  • 553 replies
  • January 10, 2024

Hi,


Does the redirect URL on that screen match the application configurations?


You can check in your app development console.


For example in mine:



  • New Member
  • 1 reply
  • February 11, 2025

There’s no REDIRECT URIs field on my configuration screen. Any feedback on this?


  • New Member
  • 1 reply
  • February 12, 2025

Hi, I am running into this issue as well. I followed the steps to use the CLI but apparently I need to change some redirect URL. There is no option in my app settings to change the redirect URI. This is blocking me as a customer of box from automating important workflows.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings