Skip to main content
Participating Frequently
Jul 13, 2023 5:21 PM UTC
Solved

Configure Postman Using JWT to Custom Box Application

I am a ServiceNow Developer looking to build a Box Integration. Currently, I have ServiceNow configured to make API calls utilizing OAuth with JWT (Server Authentication). The steps I followed to accomplish that can be found here. This does work. For testing and development purposes I would like to configure Postman to emulate exactly what I have configured in the provided link. By that I mean I was to use the same client id, secret id, and point to the same custom app that was created in those steps. I feel like I want to use the developer token generated from the custom app to accomplish this, similar to what Alex responded within this post, however, I don’t see how to point to my custom app. Admittedly, when searching for documentation on how to accomplish this I probably don’t know enough about this process to find the correct steps. Any guidance on how to accomplish this would be appreciated.

Thank you

smartoneinok Box
Senior Developer Advocate
Jul 17, 2023 6:29 PM UTC

When you create a public/private key pair in the developer console for a JWT application, it will automatically download a new configuration file for you!

Based on reviewing the ServiceNow instructions - which seem to describe issues with the Box public/private key service in tandem with ServiceNow - it looks like they just made you make your own. Similar to what is described here.

For your purposes, assuming you don’t have the private key created when setting up the original integration, using the config file downloaded automatically should work for you - as this doesn’t change the underlying application or scopes. But make sure to keep that file downloaded private. It shouldn’t be something shared widely.

Token wise - you can find information on those limits here. But - yes it should last you 60 minutes.

12 replies

b_vloAuthor
Participating Frequently
Jul 18, 2023 2:10 PM UTC

You are correct, we are working to get rid of one of them. Thank you for your help on this, I am pretty sure I have what I need at this point.

Translate
smartoneinok Box
Senior Developer Advocate
Jul 18, 2023 2:29 PM UTC

Absolutely. Let me know if you need more assistance!

Translate