website/integrations/infrastructure/osticket/index.md
osTicket is a web-based, open source user support/ticketing solution.
The following placeholders are used in this guide:
osticket.company is the FQDN of the osTicket installation.authentik.company is the FQDN of the authentik installation.:::info This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application. :::
To support the integration of osTicket with authentik, you need to create an application/provider pair in authentik.
Log in to authentik as an administrator and open the authentik Admin interface.
Navigate to Applications > Applications and click Create with Provider to create an application and provider pair. (Alternatively you can first create a provider separately, then create the application and connect it with the provider.)
Strict redirect URI to https://osticket.company/osticket/api/auth/oauth2.Based on the User's EmailClick Submit to save the new application and provider.
Download the OAuth2 plugin from the osTicket website and place it into the include/plugins folder of your osTicket installation.
Log in to osTicket as an administrator and navigate to the Admin Panel.
Navigate to Manage > Plugins.
Click Add New Plugins and follow the on-screen instructions to install the OAuth2 plugin.
Once installed, click on the newly installed OAuth2 plugin, set Status to Active, then click Save Changes.
Navigate to Instances, click on Add New Instance, select OAuth2 - Other, and set the following fields:
Enabled.authentikAgents Only or End Users Only or Agents and End Usersauthentikhttps://osticket.company/osticket/api/auth/oauth2https://authentik.company/application/o/authorize/https://authentik.company/application/o/token/https://authentik.company/application/o/userinfo/email openid profileClick on Save Changes.
To verify that authentik is correctly integrated with osTicket, first log out of your account. Then, log back in using the Sign in with authentik button. You should be redirected to your authentik instance and after successfully authenticating, you should be redirected to osTicket and logged in.