400: {"error":"invalid_grant","error_description":"Please check the 'sub' claim. The 'sub' specified

Answered
New post

Comments

1 comment

  • cbetta

     

     

    When the sub is your enterprise ID, then the box_sub_type needs to be enterprise.

     

    sub: config.enterpriseID,
    box_sub_type: "enterprise",

     

    Similarly when trying to create a JWT for a user the sub is your user ID and the box_sub_type should be user.

     

    Can you make sure that this is correct in your claim? You can see a full example over here.

     

    https://developer.box.com/guides/authentication/jwt/without-sdk/

    0
    Comment actions Permalink

Please sign in to leave a comment.