Creating a client
An application can only request access to ​OpenTicket resources if it is registered as an OAuth client in the system. You can add an application as an Oauth client through the API, but it is easier to create a client the ​OpenTicket dashboard:
- Open the dashboard
- Click on Company settings
- Click on OAuth Clients
- Change the
OAuth Client Name
andRedirect URL
Name
: a descriptive name of the application.Redirect URL
: the URL that the user will be redirected to after approving or declining access.
- Click the save button
- A set of credentials is provided
Name
: the descriptive name presented chosen above.Identifier
: the identifier of the OAuth Client.Secret
: the credentials needed to request a token.
caution
Ensure that the secret is never made public, as this allows other parties to make requests on your behalf. This includes keeping the secret out of git repositories! In the case the ​OpenTicket team happens to discover a leaked secret, all issued tokens issued by a client with this secret will be invalidated to avoid any repercussions.