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

Sonata Oauth2 Login Bundle Laravel Package

silasjoisten/sonata-oauth2-login-bundle

Symfony bundle that adds OAuth2 login to Sonata Admin, letting users authenticate through external providers instead of local credentials. Configure your OAuth2 provider and integrate single sign-on into the Sonata admin panel with minimal setup.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Admin-panel authentication roadmap. This bundle adds OAuth2/social login (e.g. Google, GitHub, Azure AD) to Sonata Admin back-office logins. It directly supports decisions about whether internal admin users authenticate with local passwords or with a corporate/social identity provider.
  • Build vs. buy for OAuth2 login. It is a thin, ready-made integration over league/oauth2-client and Symfony security. The "buy" (adopt) option is cheap here in engineering time; the "build" option is only justified if you need custom identity providers or flows the bundle does not expose.
  • Security/credential-reduction initiatives. Offloading admin credentials to an IdP removes password storage, reset flows, and MFA ownership from your admin surface — a recurring theme in security and compliance roadmaps.
  • Scope correction worth flagging: despite being filed under "Laravel/PHP," this is a Symfony bundle (Sonata Admin), not a Laravel package. It should not be evaluated against Laravel's Socialite or Laravel auth scaffolds. If your product surface is Laravel, this is a "not applicable" line item; if you run a Symfony/Sonata admin, it is a genuine candidate.
  • Release 6.1.0 impact: no product change. The release contains (a) a CI dependency bump for GitHub Actions and (b) dropping twig ^2.0 support. There is no new capability, no new provider, no UX change. Product decisions are unchanged; this is purely a maintenance-floor signal for engineering.

When to Consider This Package

Consider adoption when all of the following hold:

  • Your backend is Symfony with Sonata Admin as the admin UI; the bundle is purpose-built for that stack.
  • You need OAuth2/OIDC login for administrators, not for end customers.
  • You are on Twig 3.x or later — as of 6.1.0, Twig ^2.0 is no longer supported. Twig 2 has been end-of-life for some time, so this should be uncontroversial for maintained projects, but it is a hard floor change that lands in a minor release.
  • You accept single-maintainer, low-velocity maintenance risk. Release cadence is infrequent and changes are small; there is no vendor SLA, no commercial support tier, and no public roadmap. Plan for the possibility of pinning or forking.
  • Your OAuth2 providers are ones already expressible through the underlying league/oauth2-client providers; you are not depending on the bundle for exotic flows.

Look elsewhere when:

  • You are building on Laravel — use Laravel Socialite; this package will not integrate.
  • You are on Symfony without Sonata Admin — use knpUOAuth2ClientBundle, HWIOAuthBundle, or the underlying league/oauth2-client directly. Adding Sonata just to get login is the wrong dependency direction.
  • You need SAML, SCIM provisioning, or enterprise SSO with audit guarantees — none of that is in scope here.
  • You are pinned to Twig 2 and cannot upgrade, in which case 6.1.0 is not installable and you should stay on 6.0.x with a documented exit plan.
  • You require vendor-backed support, SLAs, or security disclosure guarantees — this project does not offer them.

How to Pitch It (Stakeholders)

For executives: This is a small open-source add-on that lets administrators sign in to our back-office using an existing corporate or social identity provider instead of a separate password. The business case is reduced credential sprawl and fewer password-reset tickets for internal tooling. Cost is essentially zero in licensing; the real cost is a few days of integration work plus ongoing dependency hygiene. The 6.1.0 release does not add features — it only modernizes build tooling and raises the minimum Twig version to 3.x. If we adopt, we should treat it as a low-risk, low-criticality dependency and avoid building strategic identity plans on top of it.

For engineering: Two changes in 6.1.0: GitHub Actions dependency updates (no runtime impact) and removal of Twig ^2.0 support (runtime-relevant). The Twig 2 drop is technically a breaking constraint shipped in a minor version — treat your composer.json constraints accordingly. Since Twig 2 is EOL, the practical upgrade risk is near zero, but confirm no transitive dependency still resolves to Twig 2 before bumping. There are no code-level API changes, no deprecations announced, and no migrations required beyond the version constraint. Given the single-maintainer profile and sparse release history, pin to a known-good tag, add it to your dependency-review watchlist, and avoid extending it without vendoring the patch.

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.
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log