Skip to main content

Integrate with Pangolin

Support level: Community

What is Pangolin?

Pangolin is a self-hosted tunneled reverse proxy server with identity and access control, designed to securely expose private resources on distributed networks.

-- https://pangolin.net

Preparation

The following placeholders are used in this guide:

  • pangolin.company is the FQDN of the Pangolin 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

Redirect URI changes in authentik 2026.5

In authentik versions earlier than 2026.5, all Redirect URIs are automatically treated as Authorization type. If you are using one of these older authentik versions, add only the Authorization URL to your Redirect URIs and do not configure a Post Logout URI.

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

Create an application and provider 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 create an application and provider pair. (Alternatively you can first create a provider separately, then create the application and connect it with the provider.)

    • 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 and Client Secret values because they will be required later.
      • Temporarily add a Redirect URI of type Strict Authorization as https://temp.temp.
      • Select any available signing key.
    • Configure Bindings (optional): you can create a binding (policy, group, or user) to manage the listing and access to applications on a user's Application Dashboard page.
  3. Click Submit to save the new application and provider.

Pangolin configuration

  1. Log in to Pangolin as a server administrator.

  2. Navigate to Server Admin > Identity Providers, and click Add Identity Provider.

    • Under General Information:
      • Name: authentik
      • Provider Type: select OAuth2/OIDC.
      • Auto Provision Users (optional): enable this option for authentik users to be automatically provisioned in Pangolin on first login. If this option is disabled, create the user in Pangolin before the first login.
    • Under OAuth2/OIDC Configuration:
      • Client ID: Client ID from authentik.
      • Client Secret: Client Secret from authentik.
      • Authorization URL: https://authentik.company/application/o/authorize/
      • Token URL: https://authentik.company/application/o/token/
  3. Click Create Identity Provider.

  4. Open the identity provider, and note the Redirect URL value because it will be required in the next section.

Reconfigure authentik provider

  1. Log in to authentik as an administrator and open the authentik Admin interface.
  2. Navigate to Applications > Providers and click the Edit icon of the newly created Pangolin provider.
  3. Add a Redirect URI of type Strict Authorization as the value taken from Pangolin, for example https://pangolin.company/auth/idp/<identity-provider-number>/oidc/callback.
  4. Click Update.

Configuration verification

To confirm that authentik is properly configured with Pangolin, log out and log back in via the authentik login button.

Resources