When should one use BoxDeveloperEditionAPIConnection?
AnsweredI'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?
-
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.
Please sign in to leave a comment.
Comments
2 comments