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
Laravel Oauth2 Login

Laravel Oauth2 Login Laravel Package

kronthto/laravel-oauth2-login

Add OAuth2 social login to your Laravel app. This package provides a simple, configurable way to authenticate users through OAuth2 providers, handling the redirect and callback flow for you. Integrates with Laravel's auth system so users can sign in via third-party accounts.

View on GitHub
Deep Wiki
Context7

Provides a middleware to protect resources requiring an OAuth2 login

Frequently asked questions about Laravel Oauth2 Login
How do I install kronthto/laravel-oauth2-login in a Laravel app?
Install it with Composer using composer require kronthto/laravel-oauth2-login. Then review the package README and configuration to register any middleware, routes, or config values your application needs. Test the redirect and callback flow in a staging environment before enabling it for production users.
Which Laravel versions does this OAuth2 login package support?
Based on the v1.13.0 release notes, the package targets Laravel 9 LTS through Laravel 10. It is a reasonable fit for Laravel 9 and 10 applications, but it is not intended for Laravel 8 or older. Support for Laravel 11 or 12 is not evidenced in the available release information.
What PHP versions are required by kronthto/laravel-oauth2-login?
The available release notes do not state the exact PHP version constraints. You should inspect the package composer.json for its php and illuminate or laravel/framework requirements before upgrading. Use a PHP version that is supported by your Laravel 9 or 10 application and verify compatibility in CI.
How do I configure OAuth2 providers for social login?
The package is designed to be configurable for authenticating users through OAuth2 providers. Provider credentials and options are supplied through the package configuration, but the exact keys depend on the package version and documented setup. Follow the README for the provider configuration and confirm each provider's redirect and callback URLs.
How does the middleware protect routes that require an OAuth2 login?
The package provides middleware intended to protect resources that require an OAuth2 login. You attach that middleware to the routes or route groups that should only be accessible to authenticated users. Requests without a valid OAuth2 login are then sent through the package's authentication flow.
Does this package integrate with Laravel's built-in authentication system?
Yes. The package integrates with Laravel's auth system so users can sign in via third-party OAuth2 accounts. That means your application can continue to use Laravel's normal authentication helpers and user model after the OAuth2 flow completes. Confirm the exact user provisioning behavior in the package documentation for your version.
Who handles the OAuth2 redirect and callback routes?
The package handles the redirect and callback flow for you, which reduces the amount of provider-specific controller code you need to write. You still need to configure the provider and make sure the callback URL matches what is registered with that provider. Validate the full round trip in staging before production rollout.
Is v1.13.0 a breaking change for legacy Laravel applications?
Treat v1.13.0 as a dependency-modernization release rather than a feature release. It removed some older versions, which is a breaking compatibility change for legacy applications even though the version number is minor. Applications on Laravel 8 or older should not adopt it without first planning a Laravel upgrade.
Is Laravel 11 or Laravel 12 supported by this package?
The available evaluation is based solely on v1.13.0 release notes, which cover Laravel 9 through 10. Laravel 11 and 12 support is not yet evidenced, so verify the package composer constraints before planning adoption. If you need newer Laravel support, ask the maintainer whether it is planned.
How should I test and roll out this OAuth2 login package in production?
Pin your currently working package version, confirm your Laravel and PHP versions, then update to v1.13.0 in a branch. Run your unit and integration tests, smoke-test the full login flow in staging, and canary the change to production with a rollback path available. Also review the changelog and any published configuration or migration steps before deployment.
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