nowo-tech / auth-kit-bundle
Symfony bundle for configurable login and registration with overridable templates, registration modes, and i18n
Package info
github.com/nowo-tech/AuthKitBundle
Type:symfony-bundle
pkg:composer/nowo-tech/auth-kit-bundle
Fund package maintenance!
Requires
- php: >=8.2 <8.6
- doctrine/doctrine-bundle: ^2.10 || ^3.0
- doctrine/orm: ^3.7
- nowo-tech/doctrine-encrypt-bundle: ^2.3
- nowo-tech/form-kit-bundle: ^2.14
- nowo-tech/migrations-kit-contracts: ^1.0
- nowo-tech/transaction-contract: ^1.1
- nowo-tech/transaction-doctrine: ^1.10
- nowo-tech/ui-kit-bundle: ^2.26
- psr/clock: ^1.0
- symfony/asset: ^7.4 || ^8.0
- symfony/config: ^7.4 || ^8.0
- symfony/dependency-injection: ^7.4 || ^8.0
- symfony/form: ^7.4 || ^8.0
- symfony/framework-bundle: ^7.4 || ^8.0
- symfony/http-client: ^7.4 || ^8.0
- symfony/http-kernel: ^7.4 || ^8.0
- symfony/password-hasher: ^7.4 || ^8.0
- symfony/polyfill-intl-normalizer: ^1.31
- symfony/polyfill-mbstring: ^1.31
- symfony/property-access: ^7.4 || ^8.0
- symfony/routing: ^7.4 || ^8.0
- symfony/security-bundle: ^7.4 || ^8.0
- symfony/security-csrf: ^7.4 || ^8.0
- symfony/serializer: ^7.4 || ^8.0
- symfony/translation: ^7.4 || ^8.0
- symfony/twig-bundle: ^7.4 || ^8.0
- symfony/uid: ^7.4 || ^8.0
- symfony/validator: ^7.4 || ^8.0
- symfony/yaml: ^7.4 || ^8.0
- twig/extra-bundle: ^3.12
- twig/string-extra: ^3.12
- web-auth/webauthn-lib: ^5.3.17
Requires (Dev)
- endroid/qr-code: ^6.0
- friendsofphp/php-cs-fixer: ^3.0
- igor-php/igor-php: ^0.10.0 || ^0.11.0
- nowo-tech/migrations-kit-bundle: ^2.8
- nowo-tech/otp-input-bundle: ^1.9
- nowo-tech/password-strength-bundle: ^2.0
- nowo-tech/password-toggle-bundle: ^2.0.0
- nowo-tech/phpstan-frankenphp: ^1.4
- nowo-tech/slide-to-confirm-bundle: ^1.0
- nowo-tech/user-kit-bundle: ^1.15
- phpstan/phpstan: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^10.0 || ^11.0
- rector/rector: ^2.0
- symfony/browser-kit: ^7.4 || ^8.0
- symfony/clock: ^7.4 || ^8.0
- symfony/css-selector: ^7.4 || ^8.0
- symfony/lock: ^7.4 || ^8.0
- symfony/mailer: ^7.4 || ^8.0
- vincentlanglet/twig-cs-fixer: ^4.0
Suggests
- endroid/qr-code: PNG/SVG data-URI QR codes for QR phone login (^6.0; PNG needs ext-gd)
- nowo-tech/device-intelligence-bundle: Device observation on auth pages, new-device notify, QR trusted-device step-up (^1.1; PHP 8.3+)
- nowo-tech/login-throttle-bundle: Required for production login forms — credential stuffing protection (^3.1; installed by Flex recipe)
- nowo-tech/otp-input-bundle: Multi-box OTP field on the password-reset and MFA codes (^1.9; UX only, server checks stay mandatory)
- nowo-tech/password-strength-bundle: Strength policies, live feedback, and validator for registration and password reset fields (^2.0)
- nowo-tech/password-toggle-bundle: Password fields with visibility toggle (^2.0.3; registers the nowo_password_toggle asset package)
- nowo-tech/slide-to-confirm-bundle: Slide-to-confirm on registration consent and QR login approve (^1.0)
- nowo-tech/user-kit-bundle: GDPR erasure and export: registers the AuthKit personal-data erasers and export sections (^1.13)
- symfony/http-client: Required with symfony/ux-icons to fetch toggle icons on demand
- symfony/lock: Serializes AuthKitAttemptLimiter read-modify-write so concurrent requests cannot exceed rate limits; required with MFA (^7.4 || ^8.0; use a shared store on multi-host setups)
- symfony/mailer: Sends the invitation e-mails (invitations.mode: enabled; ^7.4 || ^8.0). Without it the inviter can be shown the link once (invitations.show_link_when_undelivered)
- symfony/ux-icons: Required for password visibility toggle icons (^2.0 || ^3.0)
Provides
None
Conflicts
- nowo-tech/otp-input-bundle: <1.9
- nowo-tech/password-toggle-bundle: <2.0.3
- nowo-tech/user-kit-bundle: <1.13
Replaces
None
- dev-main
- v2.9.0
- v2.8.0
- v2.7.1
- v2.7.0
- v2.6.0
- v2.5.0
- v2.4.1
- v2.4.0
- v2.3.0
- v2.2.1
- v2.2.0
- v2.1.0
- v2.0.0
- 1.x-dev
- v1.56.0
- v1.55.1
- v1.55.0
- v1.54.1
- v1.54.0
- v1.53.0
- v1.52.0
- v1.51.1
- v1.51.0
- v1.50.0
- v1.49.0
- v1.48.0
- v1.47.0
- v1.46.0
- v1.45.2
- v1.45.1
- v1.45.0
- v1.44.0
- v1.43.0
- v1.42.0
- v1.41.0
- v1.40.0
- v1.39.0
- v1.38.0
- v1.37.1
- v1.37.0
- v1.36.1
- v1.36.0
- v1.35.0
- v1.34.0
- v1.33.1
- v1.33.0
- v1.32.2
- v1.32.1
- v1.32.0
- v1.31.2
- v1.31.1
- v1.31.0
- v1.30.0
- v1.29.0
- v1.28.0
- v1.27.3
- v1.27.2
- v1.27.1
- v1.27.0
- v1.26.0
- v1.25.0
- v1.24.1
- v1.24.0
- v1.23.1
- v1.23.0
- v1.22.4
- v1.22.3
- v1.22.2
- v1.22.1
- v1.22.0
- v1.21.1
- v1.21.0
- v1.20.1
- v1.20.0
- v1.19.0
- v1.18.0
- v1.17.5
- v1.17.4
- v1.17.3
- v1.17.2
- v1.17.1
- v1.17.0
- v1.16.0
- v1.15.0
- v1.14.0
- v1.13.1
- v1.13.0
- v1.12.2
- v1.12.1
- v1.12.0
- v1.11.4
- v1.11.3
- v1.11.2
- v1.11.1
- v1.11.0
- v1.10.1
- v1.10.0
- v1.9.1
- v1.9.0
- v1.8.2
- v1.8.1
- v1.8.0
- v1.7.6
- v1.7.5
- v1.7.4
- v1.7.3
- v1.7.2
- v1.7.1
- v1.7.0
- v1.6.1
- v1.6.0
- v1.5.1
- v1.5.0
- v1.4.4
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.0
- v1.2.0
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.0
- dev-fix/2.8.1-read-dirty
- dev-feat/php86-sf82-auth-proofs
- dev-feat/2.8.0-rp-logout
- dev-fix/2.7.1-remembered-reauth
- dev-feat/2.7.0-enterprise-oidc
- dev-feat/2.6.0-webauthn-rp-provider
- dev-fix/demo-smoke-2026-11-24
- dev-fix/igor-011-event-request
- dev-fix/rt003-zz-followups
- dev-fix/rt003-audit-followups
- dev-fix/req-runtime-003
- dev-feat/exact-key-columns
- dev-chore/1.x-maintenance-1.56
- dev-feat/2.0
- dev-feat/1.56-port-constants
- dev-chore/i18n-catalogue-demo-alias
- dev-chore/demo-platform-shell
- dev-fix/host-loaded-entities-1-55
- dev-fix/schema-fk-collation
- dev-feat/arch001-notice-1.54.0
- dev-docs/demo-align-uikit-formkit
- dev-ci/light-mode
- dev-chore/transaction-doctrine-1.8
- dev-ci/deps-floor
- dev-fix/playwright-image-pin
- dev-fix/req-runtime-003-conflict-codes
- dev-chore/phase-c-req
- dev-chore/demo-uikit-formkit
- dev-fix/1.52-otp-input-1.9
- dev-fix/mfa-account-otp-visibility
- dev-feat/mfa-otp-input
- dev-feat/load-readiness
- dev-feat/identifier-normalizer
- dev-feat/1.48-social-provider-marks-and-auth-params
- dev-fix/sec006-mfa-lookalike
- dev-feat/arch-001-xl
- dev-fix/mfa-memo-per-uow
- dev-fix/worker-memo-a1
- dev-feat/gdpr-ports
- dev-feat/post-login-guard
- dev-fix/arch-bar-w0
- dev-feat/invitation-followups
- dev-feat/ddd-ports
- dev-feat/1.39-userkit-adopt
- dev-feat/1.38-signin-rollback-templates
- dev-fix/login-authenticator-name
- dev-feat/overrides-ak-1-2-3
- dev-fix/1.36.1-audit-fh
- dev-fix/beacon-audit-1122
- dev-feat/avatar
- dev-feat/1.34.0-multi-account
- dev-feat/1.34.0-mfa
- dev-chore/req-gaps-1.32.1
- dev-fix/test-memory-limit
- dev-feat/invitations
- dev-feat/core-nowo-v2-u1-u5
This package is auto-updated.
Last update: 2026-11-27 21:11:08 UTC
README
⭐ Found this useful? Install from Packagist and give the repo a star on GitHub.
Symfony bundle for configurable login, registration, and password reset: overridable Twig templates, registration modes (disabled, first_user_only, always), optional embeddable auth dropdown, locale-prefixed routes, assignable registration role, configurable user entity and form fields, built-in routes, and translations (de, en, es, fr, it, nl, pt).
Works alongside Symfony Security — security.yaml remains required and is documented in INSTALLATION.md with optional CLI helper nowo:auth-kit:configure-security.
This bundle is FrankenPHP worker mode friendly (including when the kernel is not reset between requests — see FRANKENPHP-WORKER-AUDIT.md).
Sign in — UiKit auth scaffold on the host's guest layout |
Invitations — administration list (opt-in, 1.32) |
Accept an invitation — registration form, e-mail locked |
Features
- Login page compatible with Symfony
form_login - Registration with Doctrine persistence and password hashing
- Password reset (link, code, or both) with pluggable notifier
- Magic login (passwordless email link via Symfony
login_link; optional CSRF confirm interstitial) - Social login (OAuth; see SOCIAL-LOGIN.md) with the provider's official brand mark on every button out of the box (1.48; see BRAND-MARKS.md)
- OpenID Connect providers (2.3): any issuer with discovery (Okta, Keycloak, Auth0, Entra tenant), GitLab (incl. self-hosted), Sign in with Apple, LinkedIn and Slack, with full ID token verification and an SSRF-guarded fetcher (see OIDC-PROVIDERS.md)
- Enterprise SSO (OIDC) via social credentials +
enterpriseSsoflag (see SSO.md) - QR phone login (opt-in; see QR-LOGIN.md)
- Invitations (opt-in, 1.32): invite by e-mail instead of open registration (
registration_mode: invite_only), hashed single-use expiring links, administration pages (list, invite, resend, revoke) on the UiKit scaffolds, acceptance on the registration form, Symfony Mailer delivery, audit events, grant SPI and purge command (see INVITATIONS.md) - Two-factor authentication (opt-in, 1.34): TOTP authenticator apps with a server-rendered QR code, single-use recovery codes, a firewall-level two-step token after every first factor, remember-me only after the second step, trusted devices, required roles with a grace period, admin reset, UserKit session integration (see MFA.md)
- Passkeys / WebAuthn (opt-in, 2.4.0): passwordless sign-in with conditional UI (the browser offers the site's passkeys, or a phone through its QR code), a passkey as the second factor next to TOTP, an account page to add, rename and remove them, single-use session-bound challenges, user verification required; since 2.6.0 the RP id and origins can come from the host at runtime (
WebAuthnRelyingPartyProviderInterface, validated, fail closed) (see WEBAUTHN.md) - Several accounts at once (opt-in, 1.34): Google-style account switcher, each account in its own session through its own sign-in and MFA, switch without a password, sign out one or all, UserKit revocation and personal-data erasure; schedule
nowo:auth-kit:accounts:purge(nightly) to drop expired entries (see MULTI-ACCOUNT.md) - Post-login target guard and expired-session 401 (opt-in, 1.44): a sign-in never lands on an API, JSON, asset or foreign URL saved by a background call, and background calls of an expired session get a JSON 401 instead of a login redirect (see LOGIN-TARGET.md)
- WebAuthn / passkeys — design locked for a later release (see WEBAUTHN.md, ROADMAP.md)
- Embedded auth dropdown (
auth_kit_dropdown()) for navbars and layouts - Locale in URL paths (
/en/login,/es/register, …) - Remember me (optional persistent login cookie)
- Password strength (optional integration with
nowo-tech/password-strength-bundle) - Slide to confirm (optional integration with
nowo-tech/slide-to-confirm-bundlefor registration consent and QR approve) - Device intelligence (optional integration with
nowo-tech/device-intelligence-bundle, PHP 8.3+: collect on auth pages, new-device notify, device-keyed rate limits, QR trusted-device step-up; Device ID is not a credential) - OTP input (optional integration with
nowo-tech/otp-input-bundlefor a multi-box password-reset code field; UX only) - Registration modes: disabled, first user only, always open
- Admin CLI —
nowo:auth-kit:create-admin(hidden password prompt, min length + password-strength policy,AdminUserCreatedEventhook) - Recipient-locale notifications — reset / magic-login / new-device links and notifier translator in the account's preferred locale (
PreferredLocaleAwareInterface) - Translated flash messages — AuthKit flashes are stored as text (any host flash template works) plus a
flash_transTwig filter with a configurable domain chain - Named profiles — separate auth config per user entity (
User,Admin, …) with O(1) class resolution - Configurable
user_class, identifier field, login/register fields, role, routes, templates - Legacy-host opt-ins (1.30+): bare route name suffix (
.default), POST + CSRF logout, reset check-email page and token in session, throttled reset signal from a custom token manager, unmappedauth_kit_*entities and no routes for disabled features (CONFIGURATION.md, PASSWORD-RESET.md) - UiKit page contract (REQ-UI-003): every auth page is the UiKit auth scaffold on your guest layout — theme it once in
nowo_ui_kit, no page overrides (TEMPLATES.md) - Per-page template overrides via
web_ui.templates.<page>(thin{% extends '@!NowoAuthKit/…' %}+ data block) - Translation domain
NowoAuthKitBundlewith app overrides (de,en,es,fr,it,nl,pt)
Installation
composer require nowo-tech/auth-kit-bundle
# config/packages/nowo_auth_kit.yaml nowo_auth_kit: default_profile: default profiles: default: user_class: App\Entity\User user_identifier_field: email registration_mode: first_user_only registration_role: ROLE_USER
The legacy flat layout (user_class at root) remains supported. See Configuration.
php bin/console nowo:auth-kit:configure-security
Demo
make -C demo up-symfony8 # Symfony 8.1 — http://localhost:8010
Register the first user, then try password login, password reset, magic login, QR phone sign-in and dual locale URLs (/en/login and bare /login → redirect). The demo host renders the auth pages through its UiKit guest layout (templates/layouts/guest.html.twig, UiKit default theme), with the masthead auth_kit_dropdown(), a session delivery inbox (no mailer) and FrankenPHP (Docker); it has no AuthKit template overrides. Screenshots: see the top of this README (make -C demo/symfony8 demo-screenshots).
See demo/README.md for template override paths and docs/DEMO-FRANKENPHP.md for FrankenPHP setup (including worker mode for production).
Development
make up
make test
make release-check
Documentation
- Installation
- Configuration
- Usage
- Concurrency (REQ-RUNTIME-003)
- Contributing
- Code of Conduct
- Changelog
- Upgrading
- Release
- Security
- Engram
- Spec-driven development
- GitHub Spec Kit
Additional documentation
- PSR evaluation (REQ-CS-007)
- Templates (UiKit page contract)
- GitHub Actions CI requirements
- Password reset
- Magic login
- Social login
- OpenID Connect providers
- QR phone login — opt-in (
mode: disabledby default; shipped since v1.12) - Invitations — opt-in (
invitations.mode: disabledby default; since v1.32) - Two-factor authentication — opt-in (
mfa.enabled: falseby default; since v1.34) - Passkeys / WebAuthn — opt-in (
webauthn.mode: disabledby default; since v2.4) - Several accounts at once — opt-in (
multi_account.enabled: falseby default; since v1.34) - Post-login target guard and expired-session 401 — opt-in (
login_target.enabled/session_expired.enabled: falseby default; since v1.44) - Standard Symfony and DDD / hexagonal hosts — framework-free ports, private entity manager, XML mapping, reset table (opt-in; since v1.46)
- Roadmap
- Demo with FrankenPHP
- FrankenPHP worker audit (no kernel reset)
Tests and coverage
- Tests: PHPUnit (unit + integration)
- PHP: 100%
- TS/JS: N/A
- Python: N/A
License
MIT — see LICENSE.



