spomky-labs/oauth2-server-password-client
A password-grant client extension for the Spomky-Labs OAuth2 server library, adding support for the resource owner password credentials flow so your authorization server can issue tokens from a username and password.
league/oauth2-server, not vs. a supported vendor product.oauth2-server. Adopting it otherwise quietly commits you to an end-of-life framework for one grant type.Consider it when:
oauth2-server (1.x era) and need password-grant support as a plug-in client type.Look elsewhere when:
league/oauth2-server (the maintained successor lineage) or a hosted IdP — Keycloak, Ory, Auth0, Cognito.To executives: This is a small, single-purpose library that lets our PHP backend issue OAuth2 tokens from a username and password. It's a tactical shortcut, not a platform bet. Honest framing: it saves roughly a day of engineering and carries real maintenance and security-patch risk, because it has effectively no users and no active maintainer. I'd green-light it only as an interim step — with a named owner, a pinned version, and a dated plan to move to a maintained identity provider. Do not hang a customer-facing login or account roadmap on it.
To engineering: Treat it as a reference implementation we own, not a dependency we consume. Budget for: pinning the exact version (or vendoring/forking it), tests around client validation, credential checks, error responses, and token expiry, plus a compatibility pass against our PHP and PSR versions. If we aren't already on Spomky-Labs' server, the honest alternatives are league/oauth2-server or a day implementing the grant ourselves — both give us a maintainer and a security process. Also flag now: the password grant is deprecated in OAuth 2.1. If mobile clients are on the roadmap, PKCE is the better shape, and we should say that before the architecture hardens.
How can I help you explore Laravel packages today?