You are viewing limited content. For full access, please sign in.

Question

Question

Web Access 10 - Import Services

asked on November 27, 2015

I'm interested in configuring Import Services in our Web Access 10 configuration.  When I access the help (here) it just shows a placeholder for the documentation.  Any idea when there will be any documentation for this feature?

0 0

Answer

SELECTED ANSWER
replied on November 27, 2015

Here's how you can configure it for Google Drive. Note that you will need a Google Apps account for your organization. It doesn't seem to work with individual (personal) Google accounts.

First, go to your Google Apps Admin Console and verify that Google Drive is turned on. Then to the Google Developer Console. If you don't have a project yet, create one. You'll eventually find yourself on this page:

Under Google Apps APIs, click Drive API.

All APIs are disabled by default and need to be enabled first. On the overview page for the Drive API, click on "Enable API". It will tell you that the API is enabled, but you need credentials for it. Click on "Go to Credentials":

Click "Add credentials" and then from the dropdown select OAuth 2.0 client ID:

Next, you configure the OmniAuth consent screen:

You can enter as much information as you want. I only populated the required fields:

And finally, you create the Client ID. Pay special attention to the Authorized Redirect URIs section. It is case sensitive:

Click Create. It will give you your Client ID and Client secret, which you plug into Web Access Configuration. Go to Services > Import Services tab, then do two things:

  1. For Cloud Services URI, enter: http://mywebserver/cloudimportservices. Google accepts either localhost or the fully qualified domain name ending with .com, .net, .org, and so on. If you are running WA on a specific port, make sure to put that both here and in the Authorized Redirect URIs section above.
  2. Under Google Drive, enable it and put in your Client ID and App key.

 

If you did everything correctly, you should be able to see the Google Drive link on the Import dialogues in Web Access, and clicking it should take you to the OmniAuth screen where you can allow Web Access to connect to your organization's Google Drive.

13 0
replied on November 30, 2015

Wow.  Thanks for taking the time to type up such a thorough response.

0 0
replied on September 28, 2017

Note that it is not accurate that this will not work with (free) individual Google accounts. The Google API Console is available at https://console.developers.google.com.

0 0

Replies

replied on August 1, 2018

The Access Denied error may be caused by not enabling required APIs in Google. Please check the app you registered in Google. There should have at least 2 APIs enabled: Google+ API and Drive API.

2 0
replied on April 4, 2016

Hi Ege,

I'm getting an access error. Can you help out here or would you prefer a new thread to be opened?

Error - Laserfiche

Access denied. The application is not granted permission.
-Ben

 

0 0
replied on April 4, 2016

Hey Ben,

My memory is hazy, but I think I got that error when I tried to configure it with a personal Google Drive account. I then noticed that it has to be a Google Apps account (typically for a business or organization). Give that a try.

0 0
replied on April 5, 2016

Hi Ege,

After you suggestion, I gave it a try. I'm still getting the same problem.

Perhaps I should raise a case for it. Would this be a support query or a pre-sales one?

-Ben

 

0 0
replied on April 5, 2016

Hi Ben,

I'd start with Presales and have them double check your configuration. If they find that it's a software issue, they can direct you to support.

 

0 0
replied on April 19, 2016

I'm getting the same error as Ben, "Access denied. The application is not granted permission".  There is documentation available now from here.  I've followed the documentation as best I can.  However, I think Google has changed some of there screens so the documentation doesn't match exactly.

0 0
replied on April 19, 2016

Hi Rob,

Am still working on this, I'll let you know when I get google or onedrive working.

-Ben

0 0
replied on April 19, 2016 Show version history

The last time I got google drive working I had to reset IIS after setting the app key in Web Access to get the changes to go through. The documentation is slightly out of date for Google Drive because the web interface changed. here is my updated list of steps:

  • Sign into the Google Developers Console.
  • Select the dropdown at the top right and choose Create Project…
  • Specify a project name and click Create.
  • Click on Drive API.
  • Click Enable, then click the back button.
  • In the left menu, click Credentials.
  • Under Create Credentials choose OAuth client ID.
  • Click Configure consent screen.
  • Under Product name shown to users enter a product name.
  • Click Save.
  • Select application type of Web application.
  • Specify a name for your application.
  • In the Authorized JavaScript origins section, enter the URL of your web access server. This must be a fully-qualified domain name.
    • Note: Do not specify the full path to Web Access, just the URL of the server. For example, if your Web Access URL was http://www.example.com/laserfiche, you would specify only http://www.example.com in this option.
  • In the Authorized redirect URIs, enter the fully qualified domain name of your Web Access server followed by /CloudImportServices/Account/GoogleDriveCallback. E.g. if your Web Access server is https://www.example.com, enter https://www.example.com/CloudImportServices/Account/GoogleDriveCallback
  • Make a note of the client ID and client secret.
  • Open the Web Access Configuration page. Select Services, then select Import Services.
  • Under Google Drive, set Enable to On.
  • In the Client ID option, specify the Client ID you copied from your app configuration in Developers Console.
  • In the App key option, specify the client secret you copied from your app configuration in Developers Console.
  •  
  • Select Save. Users will now be provided with the option to import files directly from Google Drive. (This is where I reset IIS)
4 0
replied on April 20, 2016

Thanks for the additional info.  This is exactly what I did, but the error persists.  It isn't urgent for me to get this working.  I'll try again another time.

0 0
replied on December 19, 2016

I follow the steps exactly.  However I end up with "Access denied.  The application was not granted permission."

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.