David McCullars
David McCullars

Reputation: 1

Box.com authorization for webhooks

In trying to setup a webhook for our box.com app, I noticed that there isn't an option to be passed an authorization_code. Without that, the code on our end will be unable to grab the updated content of the file from box.com.

The simplified workflow is:

Upvotes: 0

Views: 103

Answers (1)

David McCullars
David McCullars

Reputation: 1

Ultimately, our solution was to use the OAuth2 refresh tokens obtained during the initial use of the incoming auth_code. This refresh token (according to the box.com docs) should last about 60 days or so. So we created a background job to look for expiring refresh tokens and update them. Not an ideal solution at all (and quite awkward in the code), but it seems to be the best option available.

Upvotes: 0

Related Questions