We are writing some Box client components using the Box JDK. Because of the security at the organization we need to use proxy URLs between the components we are building which will be sitting inside the organization. We have one piece we are trying to figure out..can we use a proxy to obtain the Box OAuth2 token. If you look at a sample code snippet below you will see what I am getting at.
// URL direct to Box to be replaced
//private static final String TOKEN_URL_STRING = "https://api.box.com/oauth2/token";
// sample replacement proxy URL
private static final String TOKEN_URL_STRING = "https://bnc.proxy.url/oauth2/token";
...
...
// get connection using proxied URL
BoxDeveloperEditionAPIConnection.getAppEnterpriseConnection(boxConfig, accessTokenCache);
So will the above even work? Or is there a workaround/alternate suggestion or approach?