Skip to main content

BOX-CLI authentication with JWT raising Auth Error

  • July 2, 2024
  • 1 reply
  • 88 views
BOX-CLI authentication with JWT raising Auth Error

I’m using a free personal BOX account, and I’m trying to connect to a JWT BOX app through a aws EC2 instance of Ubuntu. I’ve configured my JWT app, created the public and private key, and run “box:configure:environments:add [json path file]” on my server. I then tried to run “box users” to see if I’m connected with my app, but that resulted in the error: “Auth Error: Please check the ‘sub’ claim. The ‘sub’ specified is invalid. [400 Bad Request] invalid_grant - Please check the ‘sub’ claim. The ‘sub’ specified is invalid.” Does anyone know how to fix it? Thanks!


Did this topic help you find an answer to your question?

1 reply

rbarbosa Box
  • Developer Advocate
  • 553 replies
  • July 2, 2024

Hi @nihal_ve ,


Welcome to the forum.


Free personal accounts only support OAuth applications, however Free Developer accounts support OAuth, JWT, and CCG.


You can get a Free developer account here.


Both CCG and JWT applications have to be authorized by the Box account administrator, to which your account does not have access. This admin console will be enabled on the free developer account.


Check out the steps for JWT and CCG on authorizing a application.


Let us know if this helps


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