Skip to content
Advertisement

OAuth with CData JDBC Driver for XML – Files on Google Drive – CallbackURL not Used

I am using the CData JDBC Driver for XML to read XML files to my java application and some of those files are on google drive so OAuth is needed.

I am following the Authenticate to XML from a Web Application flow specified on CData website.

The first step is to get the OAuth Authorization URL using the GetOAuthAuthorizationURL stored procedure.

Here is my code:

JavaScript

The redirect_uri parameter from the url returned is always set to the default value [127.0.0.1] instead of the callbackURL I send as a property to the JDBC.

prop.setProperty(“CallbackURL”, redirectUri);

How can this be fixed

Advertisement

Answer

This was the way to do it:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement