---
title: Integrate with osTicket
sidebar_label: osTicket
support_level: community
---

## What is osTicket

> osTicket is a web-based, open source user support/ticketing solution.
>
> -- https://osticket.com

## Preparation

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.
:::

## authentik configuration

To support the integration of osTicket with authentik, you need to create an application/provider pair in authentik.

1. Log in to authentik as an administrator and open the authentik Admin interface.
2. Navigate to **Applications** > **Applications** and click **New Application** to open the application wizard.
    - **Application**: provide a descriptive name, an optional group for the type of application, the policy engine mode, and optional UI settings.
    - **Choose a Provider type**: select **OAuth2/OpenID Connect** as the provider type.
    - **Configure the Provider**: provide a name (or accept the auto-provided name), the authorization flow to use for this provider, and the following required configurations.
        - Note the **Client ID**, **Client Secret** and **slug** values because they will be required later.
        - Set a `Strict` redirect URI to `https://osticket.company/osticket/api/auth/oauth2`.
        - Select any available signing key.
        - Under **Advanced protocol settings**:
            - **Subject Mode**: `Based on the User's Email`
    - **Configure Bindings** _(optional)_: you can create a [binding](/docs/add-secure-apps/bindings-overview/) (policy, group, or user) to manage the listing and access to applications on a user's **My applications** page.

3. Click **Submit** to save the new application and provider.

## osTicket configuration

1. Download the OAuth2 plugin from [the osTicket website](https://osticket.com/download) and place it into the `include/plugins` folder of your osTicket installation.
2. Log in to osTicket as an administrator and navigate to the **Admin Panel**.
3. Navigate to **Manage** > **Plugins**.
4. Click **Add New Plugins** and follow the on-screen instructions to install the OAuth2 plugin.
5. Once installed, click on the newly installed OAuth2 plugin, set **Status** to `Active`, then click **Save Changes**.
6. Navigate to **Instances**, click on **Add New Instance**, select **OAuth2 - Other**, and set the following fields:
    - On the **Instance** tab:
        - Set a **Name**.
        - Set **Status** to `Enabled`.
    - On the **Config** tab:
        - **Name**: `authentik`
        - **Authentication Target**: `Agents Only` or `End Users Only` or `Agents and End Users`
        - **Authentication Label**: `authentik`
        - **Redirect URI**: `https://osticket.company/osticket/api/auth/oauth2`
        - **Client Id**: Set the Client ID from authentik.
        - **Client Secret**: Set the Client secret from authentik.
        - **Authorization Endpoint**: `https://authentik.company/application/o/authorize/`
        - **Token Endpoint**: `https://authentik.company/application/o/token/`
        - **Resource Details Endpoint**: `https://authentik.company/application/o/userinfo/`
        - **Scopes**: `email openid profile`

7. Click on **Save Changes**.

## Configuration verification

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.

## Resources

- [osTicket Docs - OAuth2 Guide](https://docs.osticket.com/en/latest/Guides/OAuth2%20Guide.html)
