Dear anyone,
I am currently trying to execute Box API that uses JWT,
But the following issue occurred when executing the Box API to obtain an access token.
If someone else has sent about the same issue and it has been resolved,
or alternative solutions you may suggest would be highly appreciated.
[Error details] *This is written in the body of the HTTP response.
"{"error":"invalid_grant","error_description":"Please check the 'box_sub_type' claim. The value for 'box_sub_type' is invalid"}"
[Procedure]
1.Obtain a JWT using the createtoken() function of the “Box” Plug-ins.
2.Execute the Box API to obtain Box's Access Token. *An error occurs here.
[Already Confirmed]
1.Applications created in Box have been approved by the Box administrator.
2.'box_sub_type' and 'sub' classifications must match.
Thank you very much in advance for your assistance.
Best regards,
・HTTP Responese
・Component of Procedure 1 (ExpressionRule)
・Component of Procedure 2 (Integration Object)
The "URL" is the Box API endpoint for obtaining an access token.
Discussion posts and replies are publicly visible
Hi shuheit4632 ,
If Appian's createtoken() doesn't let you set box_sub_type:Use custom HTTP integration in Appian with a manually crafted JWT (you can use an external system like Node.js, or a small Java module) or raise a support request to Appian for plugin customization or use [Appian RPA] to script the JWT externally and fetch the token.The "sub" claim in the JWT should always be a Box ID, and depending on box_sub_type, be either a user ID or enterprise ID.follow the below steps, try with them:
createtoken()
box_sub_type
Log into the Box Developer Console, locate both User IDs and Enterprise IDs.
Update your Appian integration or RPA logic to use proper matching values.
Re-run the createtoken() or your custom HTTP call.
Hi, Varun
Thank you for answer.
I use user ID or enterprise ID of Box Custom Application, but the result was error as per my post.
I have'nt use RPA, so I serch the way.Thank you.