Skip to main content

Error on CLI login

  • January 9, 2024
  • 5 replies
  • 329 views

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
Forum|alt.badge.img
  • Developer Advocate
  • 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
  • January 9, 2024

Hello Rbarbosa

I’d just followed the guidance as you attached URL


rbarbosa Box
Forum|alt.badge.img
  • Developer Advocate
  • 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
  • February 11, 2025

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


  • New Member
  • 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.