mainick/keycloak-client-bundle
Symfony bundle for Keycloak authentication that adds OpenID Connect single sign-on to your app, handling login, logout, token validation, and role-based access with minimal configuration. Supports Symfony security integration and route/API protection.
Consider it when all of the following hold:
Look elsewhere when:
To executives: This is a small, free, MIT-licensed library that lets our Symfony services accept corporate Keycloak logins without us building authentication from scratch. It removes roughly a sprint of undifferentiated engineering per service and unblocks the enterprise SSO requirement that gates several deals. The cost is near zero; the risk is that it's a low-adoption community project — so we'll pin it, wrap it behind our own auth interface, and budget a few days a year to maintain a fork. Net: faster enterprise readiness, contained and disclosed dependency risk.
To engineering: The bundle gives us OIDC flow, token refresh, user-info access, and a per-request token validation listener out of the box, so we're not hand-rolling JWT verification and role mapping. Two caveats to own: it is Symfony-only (do not raise it for Laravel services), and it is a thin dependency — we isolate it behind an internal auth adapter so a version bump, abandonment, or a swap to a different IdP is a one-module change, not a rewrite. We also need to verify issuer/audience/expiry validation ourselves rather than assuming the listener does everything, and benchmark the per-request listener against our latency budget.
How can I help you explore Laravel packages today?