Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Auto Login Bundle

Auto Login Bundle Laravel Package

jmikola/auto-login-bundle

A Symfony bundle that enables passwordless automatic login using secure tokens, letting users authenticate via specially crafted URLs. Integrates with Symfony’s security system for seamless sign-in from emails, links, or trusted applications.

View on GitHub
Deep Wiki
Context7

Authenticate users in your Symfony app via a single query parameter (e.g. email and newsletter links).

Frequently asked questions about Auto Login Bundle
Can I install jmikola/auto-login-bundle in a Laravel application?
No. It is a Symfony bundle that ships a Bundle subclass, a dependency-injection extension, and a security firewall listener, none of which exist in Laravel. Composer-requiring it into a Laravel app will not give you a working auto-login feature. Treat it as a design reference only, not a Laravel dependency.
What does jmikola/auto-login-bundle actually do?
AutoLoginBundle adds secure, token-based automatic authentication to Symfony applications. It generates passwordless auto-login links, authenticates users from URL tokens, and supports configurable token expiry and one-time use. It integrates with Symfony's security firewall and can work with custom user providers and token storage.
Is AutoLoginBundle compatible with Laravel 10 or Laravel 11?
No, there is no supported integration path for Laravel 10 or Laravel 11. The package targets the Symfony 2, 3, and 4 era and PHP 7.x, and it is likely incompatible with PHP 8.2+ and modern Symfony without patching. Laravel has no bundle, container-extension, or firewall-listener model for this package to hook into.
How do I implement passwordless magic links in Laravel instead?
Use URL::temporarySignedRoute to issue a short-lived signed login URL, then validate the signature in middleware. Consume a nonce atomically with cache()->add or a database unique constraint to enforce single use, call Auth::login, and regenerate the session ID. Log the event with IP, user agent, and link ID so every auto-login attempt is auditable.
Does jmikola/auto-login-bundle support one-time-use login tokens and expiry?
The bundle advertises configurable token expiry and one-time use as core features. You still need to verify where consumption state is stored and whether consumption is atomic in your environment. If you build the pattern in Laravel, enforce single use with a cache or database nonce and keep token lifetimes short.
What are the security risks of URL-token auto-login?
The entire feature is a query parameter that authenticates a user, so token leakage is the main threat. Tokens can leak through Referer headers to third-party assets, proxy or access logs, browser history, and shared screenshots. Mitigate explicitly with short expiry, single-use nonce consumption, binding to user and purpose, audit logging, and step-up authentication for privileged actions.
Should I use AutoLoginBundle with Symfony 5.2 or later?
No, Symfony's Security component has shipped native login-link support since 5.2 through LoginLinkHandlerInterface and symfony/security-http. That core feature supersedes this bundle's main value proposition inside Symfony. For Symfony 5.2+ projects, use the native login-link handler instead of adding a legacy bundle.
What should I check before adopting AutoLoginBundle in a legacy Symfony app?
Confirm that you actually operate a Symfony 4-or-earlier application and are not assuming any PHP package is Laravel-compatible. Check single-use enforcement, where consumption state lives, token lifetime, and whether tokens are bound to a user, purpose, and expiry claim. Also review scanner prefetch behavior, audit logging of successes and failures, and the step-up path for privileged actions; the package's last release was 2020 and adoption signals are low.
How should I test token-based automatic login securely?
Test that tampered and expired tokens are rejected, that a nonce is consumed exactly once, and that concurrent requests cannot reuse it. Verify session ID regeneration after Auth::login and confirm audit logs capture both successful and failed attempts. In Laravel, write feature tests against the signed route and middleware rather than trying to test this Symfony bundle directly.
What are the best alternatives to jmikola/auto-login-bundle for Laravel?
For Laravel, use native primitives: URL::temporarySignedRoute for issuing links, middleware for signature validation, a nonce table or cache entry for single use, and Auth::login with session regeneration. This is roughly a day of work and avoids maintaining a forked Symfony bundle. For Symfony 5.2+, the native login-link handler is the correct alternative.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core