socialiteproviders/keycloak
Keycloak OAuth2 provider for Laravel Socialite. Adds a Keycloak driver so your app can authenticate users through a self-hosted or cloud Keycloak realm, handling the OAuth redirect, callback, and user retrieval with Socialite's familiar API.
Consider it when all of the following hold:
SocialiteProviders/Providers monorepo for newer unreleased fixes.Look elsewhere when:
For executives: This is a low-cost integration that removes a common blocker in enterprise sales — "can we use our own corporate login?" It's a thin connector between our Laravel app and Keycloak, an established open-source identity server. It doesn't add a vendor contract or a new platform; it lets us meet SSO requirements with configuration rather than custom engineering, and it keeps the door open to on-prem and data-residency deals. The costs to flag are operational, not licensing: someone must run Keycloak, and role/permission mapping is separate work.
For engineering: Adopt as a scoped adapter, not a platform. Add the Socialite provider event listener, configure client_id, client_secret, redirect, and the realm base_url in config/services.php, and handle the callback. Treat it as a starting point you may fork: expect to extend it for group/role claims, logout, and any refresh-token behavior. Pin the version, verify compatibility with your Laravel/PHP versions, and track the upstream SocialiteProviders/Providers monorepo since this split is read-only. Estimate one to three days for the happy path, plus explicit scope for authorization mapping and Keycloak operations.
How can I help you explore Laravel packages today?