Creating a Custom OAuth Application
For all cases where a user is accessing shared data over a network (in other words, not using Basic authentication), Zendesk uses the OAuth authentication standard. This requires the creation of a custom OAuth application, as described here.
The following procedure registers a custon OAuth application and obtains the OAuth client credentials OAuthClientId and OAuthClientSecret.
- Log in using an account that admin access to your Zendesk account.
- In the Zendesk Support Admin interface, navigate to Admin > Channels > API.
- On the Channels/API page, click the OAuth Clients tab.
- At the right side of the client list, click the plus icon (+).
- To create a client, complete the required fields:
- Set the Redirect URI to http://localhost:33333 or a different port number of your choice. When you connect, you must set the CallbackURL connection property to this exact URL.
- If you are making a desktop application, set the Redirect URI to http://localhost:33333 or a different port number of your choice.
- If you are making a Web application, set the Redirect URI to a page on your Web application where you would like the user to be returned after they have authorized your application.
- Click Save. After the page refreshes, a new prepopulated Secret field appears on the lower side.
- Use the unique identifier as the OAuthClientId, and the secret value as the OAuthClientSecret.