Self-host nforwardauth
v1.5.1Lightweight forward auth service for reverse proxies
- Stars
- 159
- Port
- 3000 (HTTP forward auth service)
nosduco/nforwardauthWhat is nforwardauth?
nforwardauth is a minimalist forward authentication service written in Rust that sits between a reverse proxy and protected applications. It authenticates users via a passwd file with SHA-512 hashed credentials and issues signed tokens stored in cookies. Once authenticated, users can access all protected services without re-entering credentials. It supports Traefik, Caddy, and nginx as reverse proxies, includes a built-in rate limiter for login attempts, and can pass the authenticated username to downstream services via the X-Forwarded-User header. The service is configured entirely through environment variables and requires only a passwd file volume mount. It has no external database dependencies.
Should you self-host nforwardauth?
nforwardauth scores 44/100 on selfhost.directory (how scoring works) and ranks #28 of 40 in Authentication. It has 159 GitHub stars.
It shipped 1 stable release in the past year. The latest, v1.5.1, came out on 10 July 2026.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is MIT-licensed and written mostly in Rust.
Its closest alternative on selfhost.directory is keycloak (86/100, 37 571 stars). It scores higher overall, so compare the two before you pick. See nforwardauth vs keycloak side by side.
Features
- Basic auth compatibility
- Cookie-based session
- Forward authentication
- Multi-proxy support
- Rate Limiting
- Single sign-on across services
- Username/password authentication
- X-Forwarded-User header
nforwardauth README
More in Authentication
nginx-ldap-authSelf-hosted reference for adding LDAP auth to NGINX via auth_request module, with Python daemon and sample config.
nhostOpen-source Firebase alternative and Backend-as-a-Service: Postgres, Hasura GraphQL APIs, auth, file storage and serverless functions, self-hosted with Docker Compose.
OIDC AuthSelf-hosted Home Assistant integration adding OpenID Connect single sign-on via providers like Authentik, Authelia, Keycloak, or Pocket ID. Installed via HACS.
openamSelf-hosted open-source access management: SSO, SAML, OAuth 2.0 and OIDC federation, adaptive authentication, centralized policy; ships as a Docker image or WAR.
Open GENAIOpen GENAI is a self-hosted, open-source fork of Japan's Digital Agency GenAI replacing cloud services with local alternatives for air-gapped operation.
OpenSignerOpen-source, self-hosted key management for embedded wallets using Shamir's Secret Sharing across Ethereum and Solana.
oryOpen-source, self-hosted identity server for login, registration, recovery and MFA, with passkeys, TOTP and social sign-in served through headless HTTP APIs.
osixia/openldapSelf-hosted OpenLDAP container for centralized authentication identity management with bootstrap setup backup utilities TLS encryption replication and upgrade automation.
phpLDAPadminphpLDAPadmin (PLA) is a self-hosted, open-source web app for browsing, searching, and modifying LDAP directory data — a user-friendly alternative to CLI LDAP tools.
Pocket IDSelf-hosted, open-source OpenID Connect Certified provider for homelabs and small teams that find Keycloak or Authentik too heavy; passkey sign-in only.
PrivateCaptchaSelf-hosted, privacy-first CAPTCHA service using Proof-of-Work to block bots without user friction, GDPR-compliant, made in EU.
pwmPWM is a self-hosted, open-source password self-service app for LDAP directories. Users reset passwords, unlock accounts, and manage credentials via web UI.

0 comments