Skip to main content
Question

When should one use BoxDeveloperEditionAPIConnection?

  • May 22, 2025
  • 2 replies
  • 6 views

Forum|alt.badge.img

I've seen examples that use  

BoxDeveloperEditionAPIConnection.getAppEnterpriseConnection(boxConfig, accessTokenCache)

and examples that use 

new BoxAPIConnection(boxConfig)

 

When/why should one use BoxAPIConnection or BoxDeveloperEditionAPIConnection? Why does is make sense to have an AccessTokenCache?

2 replies

Forum|alt.badge.img

 The `BoxDeveloperEditionAPIConnection` is intended for use with the JWT Authentication mechanism (which was previously named Box Developer Edition, hence the name).  This authentication mechanism is best suited for server-to-server use cases.  An access token cache is useful for cases where multiple API connection objects are in use (potentially across different processes), so they can share access tokens rather than needing to independently generate access tokens.


Forum|alt.badge.img

Thank you for the fast, clear and comprehensive answer!