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

回答済み
新規投稿

コメント

1件のコメント

  • 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
    コメントアクション パーマリンク

サインインしてコメントを残してください。