tamtamp/oauth2-server-bundle
Symfony bundle for running an OAuth2 authorization server in your app: it handles grant flows and access token issuing so you can protect APIs without building the protocol yourself. Early-stage project with minimal adoption so far.
Consider it only under a narrow set of conditions:
league/oauth2-server plus its maintained Symfony integration (trikoder/oauth2-bundle) — this package is a downstream fork of that lineage.Look elsewhere — strongly — if any of the following are true, and for most teams several will be:
league/oauth2-server internals and audit grant flows.Recommended default: use the maintained upstream (trikoder/oauth2-bundle / league/oauth2-server) directly, or buy a managed IdP. Adopt this fork only if it contains a specific patch you need and you are prepared to own it forever.
For executives: We have a build-vs-buy decision on identity. Standing up our own OAuth2 server unblocks revenue-relevant roadmap items — public API access, partner integrations, an app marketplace — that we cannot ship while authentication is session-only. This specific package is a Symfony-native implementation of that capability, MIT-licensed, no per-token or per-MAU cost. But it is effectively unmaintained (no release since 2022, no community, no dependents), so I am not recommending it as-is. My recommendation is the maintained upstream library it descends from, or a managed provider if we don't want to staff identity security. The buy option costs money per user but removes ongoing security burden; the build option costs engineering time and creates a permanent security-owned surface.
For engineering: This is a Symfony bundle wrapping league/oauth2-server, forked from trikoder/oauth2-bundle. It gives us authorization-code, client-credentials, and refresh-token grants with scopes declared in config. The tradeoff is explicit: it's a 2022 fork with no maintenance, so we'd be pinning and patching. I'd rather we take the upstream and contribute there, or take a managed IdP and spend our engineers on product. If there is a specific bug fix in this fork we need, let's isolate exactly what it is and see whether it's mergeable upstream first.
Ask: Approve a one-week spike to compare (a) upstream self-hosted, (b) managed IdP, on total cost including security ownership — before we commit to any third-party API roadmap dates that assume OAuth2 is solved.
How can I help you explore Laravel packages today?