authentik proxy provider and forward authentication

The authentik proxy provider lets you put SSO in front of applications that have no native SSO support, passing verified identity upstream in headers. This page covers the decisions, build sequence, effort drivers and verification.

On this page

How the authentik proxy provider protects apps without native SSO

Legacy and vendor applications that only offer a local login, or no authentication at all, can be placed behind authentik's proxy provider so that every request is checked against an authentik session before it reaches the application. In proxy mode, the authentik outpost sits in the request path and forwards traffic to the upstream app. In forward auth mode, your reverse proxy (NGINX, Traefik or Caddy) asks authentik for a decision on each request and, when the user is allowed, authentik returns identity headers that the proxy passes upstream. Either way, the application itself never sees a password it must verify.

The difficulty is trust. The application will accept whatever identity headers arrive, so the reverse proxy must strip any client-supplied copies of those headers and set only the values authentik returns. If a request can reach the app directly, bypassing the proxy, a user can forge identity. Confirm that the app's listener is reachable only from the proxy or outpost network, and test this by calling the app's address directly with spoofed headers. Also check the exact header names and the authentik provider settings for which attributes are sent, since the application may expect specific names.

Session, domain and TLS settings must line up across every protected host. Cookies issued for one hostname are not sent to another unless the cookie domain covers both, so the external hostnames, the authentik external URL and the cookie domain need a deliberate plan before go-live. Redirects after login depend on the same values, and a mismatch usually shows up as a login loop. Plan the certificate chain and TLS termination at the proxy, and decide which hosts share a parent domain. Confirm these choices with your own environment and the current provider documentation at authentik providers before you configure the first application.

Proxy mode or forward auth mode, and which outpost serves them

This table compares the main ways to wire authentik proxy providers to applications: proxy or forward auth mode, embedded or separate outpost, per-application or domain-level configuration, and proxy auth or native SSO. Read each row for when the option fits and what it adds to your operating load. Confirm current mode names and options in the authentik providers documentation before you decide.

ChoiceWhen it fitsOperating cost and trade-off
Proxy modeThe outpost sits in front of the app and handles the full request path, so the app receives only proxied trafficTraffic flows through the outpost, so it must be sized, scaled and patched with the app; confirm how it handles websockets and streaming in your app
Forward auth modeYour existing NGINX, Traefik or Caddy already terminates TLS and asks authentik whether to allow each requestDepends on the reverse proxy config staying correct; you own the mapping of identity headers and the auth endpoint route
Embedded outpostA single-site deployment with few applications and no separate network zone to reachLowest container count, but the outpost shares the server's lifecycle, so upgrades and restarts affect protected apps
Separately deployed outpostApps live in a separate network zone or cluster and need a nearby outpost with its own tokenExtra containers to patch and version-match with the server; one more component to monitor and back up in your inventory
One provider per applicationEach app has its own hostname, policies and header mapping that differ from the othersMore providers and applications to review and document; clearer audit trail and per-app change control
Shared domain-level configurationMany apps sit under one parent domain and can share one session and one login policyFewer objects to maintain, but a mistake in shared settings can expose several apps at once; test each hostname after changes
Proxy authThe app has no SSO support, or only supports trusted header identity, and you accept header-based trustLess control over what identity data the app receives; the app must only accept headers from the proxy path
Native OIDC or SAMLThe app supports OAuth2/OIDC or SAML directly and can validate tokens or assertions itselfUsually the stronger option for apps that support it, with more app-side setup but no proxy in the request path

Identity reaches the application only through the reverse proxy

The flow starts when the user browser requests a protected page. The reverse proxy sends a forward auth check to the authentik outpost or server, which reads the session from PostgreSQL. With no valid session, the browser is sent to the login flow, where authentication and MFA run. Once a session exists, authentik returns the identity to the proxy, which forwards the request with identity headers to the application. Check that the application accepts identity headers only from the proxy inside the trust boundary, because any client that reaches the application directly could send its own headers.

Forward auth check and identity headers passed to the upstream application.

How to configure the authentik proxy provider behind a reverse proxy

This sequence takes an application without native SSO from an authentik deployment to a verified setup where the reverse proxy blocks unauthenticated requests and passes the signed-in user's identity to the application in headers.

  1. Confirm the authentik deployment and outpost

    The platform team confirms that the authentik server and worker containers are running against PostgreSQL, that the administrator can sign in, and that an outpost is available to serve the proxy provider. In a Docker Compose test setup, the embedded outpost runs with the server container. In a Kubernetes setup, confirm the outpost deployment your chart version uses, and check its version against the server version so both come from the same release line. Done when the admin interface loads over the intended hostname and the outpost shows as connected in the admin area.

  2. Create the proxy provider and application

    An administrator creates a proxy provider in authentik for the application, then creates an application that uses it and sets the application's launch URL and access policy. Record the external hostname the browser will use, because authentik and the reverse proxy must agree on it. Confirm the exact field names and mode options in the providers documentation for your authentik version before you fill them in. Done when the application appears in the application list with the provider attached and a test user is assigned or allowed by the bound policy.

  3. Set the external host and authentication mode

    The administrator sets the external host to the public URL of the protected application and selects the proxy mode that matches the reverse proxy you run. Forward auth mode means the proxy asks authentik whether each request is allowed. Proxy mode means authentik sits in front of the application and forwards traffic itself. Confirm which modes your version supports and which fits your reverse proxy. Done when the provider summary shows the correct external host and the chosen mode, and both values match the hostname used in the reverse proxy configuration.

  4. Bind the provider to an outpost

    The administrator attaches the proxy provider to the outpost that will handle its traffic. For a shared test environment, the embedded outpost is usually enough. For production, confirm with your platform team whether a separate outpost deployment is needed for network placement or redundancy. The outpost must be able to reach the application and authentik must be able to reach the outpost. Done when the outpost's configuration lists the provider and its health status shows the provider as active.

  5. Point the reverse proxy at the authentication endpoint

    The engineer configures NGINX, Traefik or Caddy so that each protected route first sends an authentication subrequest to the authentik outpost endpoint for that application. Only requests the outpost approves reach the upstream application. The redirect for unauthenticated users goes to the authentik sign-in flow. Follow the reverse proxy example in the authentik documentation for your chosen proxy and confirm the endpoint path for your version. Done when an unauthenticated request to a protected route is redirected to sign-in, and a direct request to the application's upstream address is refused or unreachable from outside.

  6. Map the identity headers the application needs

    The engineer decides which user attributes the application needs, such as username, email or groups, and configures the proxy to pass them as upstream headers. Use the header mapping options in the provider settings and make the reverse proxy forward only those headers. Strip any identity headers a client sends so a user cannot forge them. Done when a test user's signed-in request shows the expected header values at the application, for example by logging the received headers in a test route, and a request with a forged header shows the value is replaced.

  7. Set cookie domain and TLS

    The engineer sets the cookie domain so the session cookie works across the protected hostname and the authentik hostname, as your DNS layout requires, and confirms that all external URLs use HTTPS with valid certificates. Mixed content or a cookie scoped to the wrong domain usually shows up as a login loop. Check the cookie attributes your version sets and confirm them with your security team. Done when a full sign-in and sign-out works in a browser on the production hostname, the session persists across page loads, and the cookie is only sent over HTTPS.

Which identity headers reach the app and how to trust them

The application learns who the user is only from the headers that the reverse proxy sets after authentik has authenticated the session, so the trust boundary sits at the proxy, not inside the app. Start by writing down the exact list of identity attributes the application needs, such as username, email, display name and group membership, and decide which of them authentik will forward. Forward the minimum set. Every extra header is data the application will store, log or act on, and a group header in particular can drive authorization decisions, so each one needs an owner who agrees to it.

Next, map each authentik attribute to the header name the application expects. The names are set in the reverse proxy configuration and must match the application's documentation character for character, including case handling where the app is strict about it. The main risk is a client sending the same headers directly to the application. If the application can be reached without passing through the proxy, or if the proxy passes inbound headers through unchanged, a user can claim any identity they like. The proxy must overwrite or remove any inbound copy of these headers before it adds its own, and the application should refuse requests that arrive from anywhere other than the proxy's address.

Write the header list, the source attribute for each header and the proxy rule that sets it into the rollout record, then test it. Send a request to the application directly, bypassing the proxy, and send one through the proxy with a forged identity header to confirm both are rejected or overwritten. Finally, confirm with the application vendor how it handles multiple values in one header, such as several group names, and what it does with an empty or missing value. Some applications take the first value, some reject the request, and some treat an empty header as anonymous. Those answers determine whether the mapping is safe, so record them before go-live. Check the current authentik provider documentation at authentik providers for the header options your version supports.

How Compose, Kubernetes and high-availability setups change proxy auth

Compose is the simplest way to run authentik in front of protected applications. The authentik Docker Compose guide calls for a host with at least 2 CPU cores and 2 GB of RAM and positions Compose for test setups and small-scale production. For a proxy provider, that means one host runs the server, the worker and PostgreSQL, and the reverse proxy routes traffic to the embedded outpost. The setup is quick to stand up, but every component shares one failure domain.

  • Single point of failure: if the host goes down, login for every proxied application stops, including applications that have no other sign-in path.
  • Shared resources: the host carries the database, background tasks and the outpost traffic, so sizing should be checked against your user count and the number of proxied applications.
  • Upgrade downtime: a version change means restarting containers on the same host, so plan a maintenance window.
  • Backups: PostgreSQL holds all configuration and data except uploaded files, so the database backup and restore procedure is the main recovery path.
  • Proxy placement: the reverse proxy typically runs on the same host, so confirm how it reaches the embedded outpost and which ports stay private.

Confirm with your team whether a single host meets your recovery targets before you commit to Compose for production.

What drives authentik proxy provider effort and cost

This table lists the factors that change the size of a proxy provider rollout and how to keep each one manageable. Read each row as a lever: the more a driver fans out, the more configuration, testing and evidence a fixed-scope quote should cover. The main takeaway is that grouping applications by domain and standardizing headers and reverse proxy templates usually lowers effort more than any single technical choice.

DriverWhy it changes effort or costHow to keep it down
Number of protected applications and hostnamesEach hostname needs its own proxy provider, application entry, outpost mapping and reverse proxy route, plus a login and logout test.Group apps by parent domain, and confirm the quote counts hostnames separately from applications.
Number of reverse proxies in useNGINX, Traefik and Caddy each need their own auth configuration and testing, so mixed proxies multiply the work.Standardize on one proxy for protected apps and reuse one reverse proxy template across routes.
Specific headers or group-based policies per applicationApps that expect different identity headers or need distinct group rules require separate property mappings and policy bindings.Agree one header set for all upstreams and limit group rules to a small, named set of access groups.
Shared or separate domainsForward auth cookies are scoped to a domain, so apps on different domains need extra cookie, redirect and session design.Consolidate applications under a shared parent domain where the business allows it.
Number of environments (test, staging, production)Each environment repeats provider, outpost and proxy configuration, and each needs its own verification pass.Keep configuration reproducible across environments and promote changes rather than rebuilding them by hand.
TLS and certificate handlingCertificates for each hostname, the outpost and the authentik endpoint must be issued, renewed and trusted by the proxy.Use one wildcard or shared certificate process where policy allows, and confirm who owns renewal.
PostgreSQL hostingauthentik stores all configuration and data in PostgreSQL, so the database hosting model affects deployment scope. The Docker Compose guide positions Compose for test and small production setups, while the Kubernetes guide recommends separately managed PostgreSQL for production.Decide early whether the database is managed by the client or the partner, and ask the quote to state backup and restore responsibilities.
Compliance evidence needsAssessors may ask for proof of access rules, login logs and change records for each protected application, which adds documentation and testing.Define the evidence list before work starts and map each application to its access policy and log source.

How to prove unauthenticated requests never reach the app

Failed authentication must deny access, never fall through to the application. Verification should show that the proxy outpost or the reverse proxy's forward auth check blocks every unauthenticated request before it reaches the application's upstream. Test three groups of cases for each protected application and record the results before the change is approved: the happy path, the failure paths and the bypass attempts. Confirm the behavior in your own environment against the authentik release you run, because the exact redirect and header behavior depends on how the outpost and the proxy are configured.

The happy path covers a first visit that redirects to the authentik login flow, a successful login that returns the user to the original URL, and the expected identity headers arriving at the application, such as the configured username, email and group values passed through by the forward auth configuration. Confirm that logout clears the authentik session and that a later request is redirected again. The failure paths cover no session, an expired session, a user who is authenticated but not bound to the application's policy, and authentik being unreachable. In each case the request should receive a redirect or a denial and the application's access logs should show no request. Treat an unreachable authentik as a deny, and confirm that behavior by stopping the outpost or blocking its path, not by assuming it.

Bypass resistance is where forward auth designs usually fail. Send requests straight to the application's origin address, bypassing the reverse proxy, and confirm the application refuses them or is not reachable at all. Send requests with forged identity headers such as X-authentik-username from an untrusted client and confirm the proxy strips or overwrites them. Request the application through every alternate hostname, IP address and path that resolves to it. Keep the evidence for each application in the change record: the commands run, the responses observed, the log lines checked and the tester and date. Retest after any proxy, outpost or application configuration change.

How to keep the proxy from being bypassed or spoofed

Forward authentication only protects an application if every request must pass through authentik first. The cards below cover the paths an attacker uses to skip the proxy, forge identity headers, or reuse a stolen session, and the checks that close each one.

Restrict the application origin

The application's own port must not accept traffic from anywhere except the reverse proxy or outpost. If the app listens on a routable address, anyone who finds it can send requests with forged headers and never touch authentik. Confirm the app binds to a private interface or sits on a network segment reachable only from the proxy host, and test by connecting directly to the app port from a client outside that segment.

Strip and overwrite identity headers

The proxy passes identity to the upstream app in headers such as the authenticated user name. If a client can send those headers itself and the proxy forwards them unchanged, the app will trust a forged user. Check that the NGINX, Traefik or Caddy configuration removes any inbound copies of identity headers before setting its own values, and send a test request with a spoofed header to confirm the app sees only the authenticated identity.

Protect outpost and provider secrets

Outposts authenticate to the authentik server with tokens, and proxy providers rely on client settings and cookie secrets. A leaked token lets someone impersonate an outpost or read configuration. Store these values in a secrets manager or environment file with restricted read access, rotate them after staff changes, and confirm that exported Blueprints or container definitions do not contain them in plain text.

Enforce TLS and cookie scope

Session cookies that cover too broad a domain can be sent to sibling applications, and cookies without secure transport can leak over plain HTTP. Serve every protected hostname over HTTPS, set the cookie domain to the narrowest parent that the proxy flow needs, and confirm the cookie is marked secure and http-only. Review each new application hostname against the cookie domain before publishing it.

Limit console access and require MFA

Anyone who controls the authentik console can change proxy providers, edit authorization, or create a bypass. Restrict the admin group to a small set of named people, keep administrator accounts separate from daily user accounts, and require MFA for every administrator through an authentication flow. Review the admin group membership on a regular schedule and remove accounts that no longer need console access.

Review authorization per application

A proxy provider attached to an application decides who gets in, and a broad or empty policy binding is the most common cause of over-exposure. For each application, list which groups or policies are bound, confirm the default is deny, and test with a user from each group that should be excluded. Repeat the review after group changes or when an application's audience changes.

What to monitor, back up and document after go-live

Once the proxy provider is live, the first thing to watch is the reverse proxy's auth subrequest. In forward auth mode, every protected request triggers a check against the authentik outpost, so error rates on that endpoint in NGINX, Traefik or Caddy show you whether users are being challenged, denied or failing silently when the outpost is unreachable. Alert on rising 5xx responses from the auth endpoint and on outpost connectivity, since an outpost that loses its connection to the authentik server can block logins for every application behind it at once. Also watch the outpost's own health and reconnection messages, and confirm your proxy alerts reach the team that owns authentik, not only the application owners.

Pair that with authentik's event log. Failed logins, authorization denials and changes to proxy providers and applications should be reviewed on a schedule and forwarded to your central logging platform, because the event log is where you see who was refused access and when a configuration changed. Back up the authentik PostgreSQL database, since it holds all configuration and data except uploaded files, and run a restore test into a separate environment so you know the backup is usable. Version the reverse proxy configuration and the header mapping, including the names of headers such as X-authentik-username and X-authentik-groups, in the same repository as your deployment configuration. Confirm with your team which headers each application trusts before any change is made to them.

Before any upgrade, check the supported release lines in the authentik security policy and the release notes for the target version, then upgrade the server and the outposts together so their versions stay aligned. Breaking changes are announced in release notes, so read them before scheduling the change. Finally, keep a register of every protected application with its owner, hostname, whether it runs in proxy or forward auth mode, the upstream it serves, and the header set it receives. Review that register whenever an application is added, retired or changes ownership, because the record is what lets you answer an access question or rebuild a route during an incident.

What buyers ask before scoping authentik proxy provider work

What drives the cost of protecting a few applications versus many with authentik?

The number of applications matters less than how different they are. Each app needs its own proxy provider, application entry, access policy and upstream routing, and apps that differ in hostname, path layout, or header expectations each take separate work. Costs rise with the count of distinct routing patterns, the number of environments (test, staging, production), the number of application owners who must sign off, and whether the reverse proxy is already in place. Ask any quote to itemize per application and per environment, and to separate one-time setup from ongoing changes, since new apps added later are a recurring cost.

Can our team protect applications with authentik proxy auth without outside help?

Yes, a team can do it in-house if it already has working skills in the relevant areas. The work touches four skill sets: reverse proxy configuration in NGINX, Traefik or Caddy, DNS and TLS certificate management, the authentication model of each protected application, and authentik itself, including flows, providers and outpost settings. A team strong in one or two of these but new to the others usually benefits from a short external review of the design before go-live. Assess honestly who owns each skill, and who will maintain the setup after the first rollout.

How long does authentik proxy provider work take, and what determines it?

Duration depends mainly on the application inventory, not on authentik alone. Teams should first record, for each app, its hostname, whether it already has a login screen, whether it trusts headers, whether it uses websockets or long-lived connections, and which environments need coverage. Apps with clean hostnames and no native login move quickly. Apps that rely on their own sessions, API clients that bypass the browser, or paths that must stay public need extra testing. Ask for a schedule built from that inventory, with named milestones and a test plan for each app, rather than a single overall estimate.

What do we need to provide for a proxy auth project to start?

A proxy auth project needs a few client-side inputs before the first change. Application owners must name who signs off on each app and provide a test account or a way to create one. The team needs a change window for each reverse proxy or DNS change, plus access to the DNS zone and the certificate process for every hostname that will be protected. Someone must also own the existing reverse proxy configuration, since authentik will sit in front of it. Confirm early whether apps that cannot be behind a login gate, such as public webhooks, need exceptions, and who approves them.

When is proxy auth the right choice instead of native OIDC or SAML?

Proxy auth fits applications that have no native SSO support, or whose SSO support is too limited for the security model you need. If an application supports OAuth2/OIDC or SAML, native integration usually gives it more precise identity claims, cleaner logout, and fewer dependencies on the proxy layer. Proxy auth adds a dependency: if the proxy or outpost fails, access to every protected app is affected. It also depends on the application trusting headers that the proxy sets, so the app must only accept those headers from the proxy. Compare both options per application and record the reason for each choice.

Does the authentik edition affect proxy provider work?

The proxy provider is part of the open-source distribution, so protecting apps with it does not on its own require an Enterprise license. According to the authentik pricing page, Open Source is free and supported through the community Discord, while Enterprise and Enterprise Plus add features such as enhanced audit logging, mTLS, and ticket-based or dedicated support. Those extras matter if your proxy rollout depends on audit trails, certificate-based access, or a support SLA. Confirm the edition and its support terms against the current pricing page before scoping, because the features you need decide the choice.

What security risks should we check before putting an app behind authentik?

Check three things first: whether the application trusts identity headers from any source, whether it has direct network paths that bypass the proxy, and whether the outpost and its tokens are handled safely. An app that accepts a header like a username from any client can be impersonated if the proxy is bypassed. Restrict the app to accept traffic only from the proxy network, and test that direct access fails. Also confirm that logs record authentication decisions, and that admin access to authentik uses MFA. Ask for a written list of these checks in the design.

How DeployOpen scopes and hands over authentik proxy protection

DeployOpen plans and implements authentik proxy protection inside your own infrastructure, so the proxy provider, outpost and reverse proxy configuration are reviewed by your security and platform teams. Each engagement is fixed-scope, with the applications, reverse proxy and deliverables agreed in writing before work starts.

How we scope

  • Inventory each application to protect and record whether it needs proxy mode or forward auth mode.
  • Confirm the reverse proxy in use (NGINX, Traefik or Caddy) and the hostnames, routes and TLS setup for each app.
  • Agree in writing which headers identity will pass upstream and which applications must trust them.

How we build

  • Configure proxy providers and application objects in authentik, with the external host and internal upstream set per app.
  • Wire the reverse proxy forward auth endpoints and confirm that the outpost reaches each protected service.
  • Test sign-in, sign-out, session expiry and header passthrough against each application, and check that unauthenticated requests cannot reach upstreams directly.

How we hand over

  • Deliver configuration as code or exported files so the proxy and authentik settings can be reproduced across environments.
  • Document the request flow, header contract, outpost placement and the steps to add a new protected application.
  • Walk your operations team through the runbook, including what to check when a protected app returns an authentication loop.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Plan proxy and outpost upgrades alongside authentik release changes, confirming the supported release lines before each change.
  • Confirm with your team which support scope, response expectations and escalation path apply before signing a written agreement.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.