Skip to main content
Question

Boxr - JWT_PRIVATE_KEY / JWT_PRIVATE_KEY_PASSWORD?

  • May 21, 2025
  • 2 replies
  • 1 view

Forum|alt.badge.img

Hi been trying to figure out how to get an app user token using the Boxr gem in Ruby on Rails.

Where do I get JWT_PRIVATE_KEY and JWT_PRIVATE_KEY_PASSWORD?

 

also do I make my own jwt assertion based on https://docs.box.com/docs/app-auth#section-6-constructing-the-oauth2-request

 

Thanks!

2 replies

Forum|alt.badge.img

JWT_PRIVATE_KEY is the path to the file that contains your private key. Here is the documentation on generating a RSA private-public keypair

 

JWT_PRIVATE_KEY_PASSWORD is the password you set for the file that contains your private key.


Forum|alt.badge.img

This did not help me.  Can you please clarify how you get the value for the JWT_Private_Key_Password.  Below is the code snippet from GitHub for the C# SDK. I have not been able to find out how to get that value as it is only a string.  From what I can tell there is no password for the Private Key.  Please help.  Thanks

 

 

var boxConfig = new BoxConfig(<Client_Id>, , , , , );
var boxJWT = new BoxJWTAuth(boxConfig);