Authorizing the Coveo Connector to Access Your Zendesk Content
The OAuth 2.0 protocol is a protocol used for granting access to external applications without exposing the user's real credentials. For the connector to be able to connect to the content of your Zendesk customer service website, it must acquire an access token.
To authorize the Coveo connector to access your Zendesk content
-
Log into your Zendesk customer service website with an administrator account.
-
Access the agent interface, by clicking the drop-down list menu in the top right of the page, and then selecting Open agent interface.
-
In the agent interface, access the Zendesk API page:
-
In the navigation bar on the left, click the Admin icon
.
-
In the admin setting menu, under Channels, click API.
-
-
In the Zendesk API page, depending on the way you want to grant access to your Zendesk content:
-
Using OAuth 2.0
-
Click the OAuth Clients tab.
-
In the OAuth Clients tab, click add a client.
-
In the New OAuth Client page:
-
In the Client Name box, enter a descriptive application name.
Example: Coveo Connector
-
Take note of the Unique Identifier auto-populated. You need this value during the OAuth authentication process.
-
In the Redirect URLs box, enter http://localhost/.
-
Click Save.
-
Take note of your application Secret.
-
Click Save again.
-
-
Authorize your application to use your Zendesk administrator account:
-
Open another browser tab by pressing CTRL+t.
-
In the new tab, copy and paste the following URL in the browser address bar after entering your website and client ID at the specified places: https://[YOUR_WEBSITE].zendesk.com/oauth/authorizations/new?response_type=token&redirect_url=http://localhost/&client_id=[YOUR_UNIQUE_IDENTIFIER]&scope=read.
-
In the Allow [ClientName] to access your Zendesk account screen, click Allow to receive an authorization code from Zendesk.
You are redirected to the URI you specified when configuring the Zendesk app.
-
In your browser address bar, take note of the access token returned by the Zendesk API. You need this value when configuring your Zendesk source (see Configuring and Indexing a Zendesk Source).
Example: http://localhost/#access_token=[ACCESS_TOKEN]&scope=read&token_type=bearer
-
-
-
Using a Zendesk API v2 token:
-
In the Zendesk API page, in the Settings tab, next to Token Access, select the Enabled check box.
-
In the section that appears, click add new token.
-
In the Enter a label for this API Token dialog that appears, enter a descriptive name, and then click Create.
Example: CoveoConnector
-
Back in the API page, next to Token Access, select the Enabled check box.
-
Under Active API tokens, take note of the API token. You need this value when configuring your Zendesk source (see Configuring and Indexing a Zendesk Source).
-
Click Save.
-
-
What's Next?
Create a Zendesk source (Configuring and Indexing a Zendesk Source).