dreamfactory/df-oauth
DreamFactory OAuth package that adds OAuth-based authentication to DreamFactory APIs, letting clients sign in with external providers and obtain secure access tokens. Integrates with DreamFactory users and roles for controlled API access.
df-oauth is the OAuth client layer of the DreamFactory platform: it lets the platform act as an OAuth 1.0/2.0 client against third-party providers, hold and refresh tokens, and expose those protected APIs through a governed proxy. If connecting OAuth-protected SaaS APIs (CRM, marketing, HR, finance) is on your roadmap, this is a concrete buy-side option to price against building the same credential/token lifecycle in-house.Consider it when:
Look elsewhere when:
league/oauth2-client — smaller, mainstream, and far better supported.Practical diligence before adopting: confirm the module's supported OAuth flows and provider coverage against your top-10 target integrations, verify token storage location and encryption at rest, check the upgrade path and version pinning against your DreamFactory release, and identify who owns patching if upstream stalls.
For executives: This is not a library we would adopt on its own — it is the OAuth connector layer inside DreamFactory, a self-hosted platform that puts a governed API in front of any data source. The strategic case is consolidation: one controlled place where third-party credentials live, refresh, and get audited, instead of tokens scattered across application code. That matters most for enterprise buyers and for our local-LLM direction, where data cannot leave the customer's perimeter. The caveat is real and should be stated plainly: this component has minimal public adoption and a thin maintainer base, so the decision to take it is genuinely a decision to standardize on DreamFactory and to own the operational risk that comes with a small-vendor dependency. My recommendation is to evaluate it as a platform commitment with a paid support path, not as an opportunistic open-source pickup.
For engineering: Treat df-oauth as an internal module, not a general-purpose dependency. It implements outbound OAuth 1.0/2.0 client flows — authorization, token persistence, refresh, revocation — for the platform's connectors. If we adopt DreamFactory, this comes with it and saves us writing per-provider token lifecycle code; we should pin the version, review the token storage and encryption path, and confirm the upgrade cadence against our platform version. If we are not adopting DreamFactory, stop here: for ordinary Laravel work, Socialite, Passport, or league/oauth2-client are the correct choices, with orders of magnitude more community support. The 6-star, zero-dependent profile means we must assume we are the maintainers of last resort.
How can I help you explore Laravel packages today?