- Introduction
- What's New?
- Features
- Getting Started
- Integration with E-commerce
- Integration with Remote Asset Sources
- Printable Files and Proof Images
- Configuring Products
- Creating Product Templates
- User Interface
- Configuration Files
- API
- Visual Proofing Tool
- Variable Data Printing
- System Requirements
- Troubleshooting
- Licensing
- Copyright Notices
The Google Drive Web Service
Applies to: Customer's Canvas On-Premises; Design Editor 4.4.25, 4.x (may differ) · Archived documentation
Now that you have private keys and tokens providing access to your Google Drive images, you can set up the Google Drive web service. This topic helps you configure this service.
Configuring the Google Drive web service
In the GoogleDriveWebService folder, open the Web.config file and find the default AppSettings section:
<configuration>
<appSettings>
<add key="OAuthClientSecretPath" value="..\data\client_secret.json" />
<add key="OAuthClientCredentialPath" value="" />
<add key="ApiSecurityKey" value="UniqueSecurityKey" />
<add key="HttpHeaderAllowOriginDomains" value="*" />
<add key="ShowSharedWithMeFiles" value="false" />
</appSettings>
...
</configuration>
Here, you can specify an optional parameter for both Google Drive account types:
- HttpHeaderAllowOriginDomains restricts the use of your Google Drive images to pages hosted only on listed domains. The "*" default value allows access from any domain.
Also, Web.config contains type-specific parameters.
User Accounts
If you have a user account, then you need to specify the following mandatory parameters:
-
OAuthClientSecretPath defines the location of the
client_secret.jsonfile. - OAuthClientCredentialPath defines the location of your token file.
- ApiSecurityKey is a secret key, which you send as X-GoogleDriveAPIKey in request headers to retrieve images.
Service Accounts
If you have a service account, specify the following mandatory parameters:
- ServiceAccountEmail defines the email to generate a token.
- ServiceAccountKeyPath defines the location of your private key in the PKCS #8 format.
- ApiSecurityKey is a secret key, which you send as X-GoogleDriveAPIKey in request headers to generate tokens.
Running the Google Drive web service
To run this service, create a pool with the NetworkService identity and add a website to the Sites list in IIS Manager.
The IIS pool must have Read and Write permissions to the folder where you keep your token file.