Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Mongodb Passport Laravel Package

designmynight/laravel-mongodb-passport

Laravel MongoDB Passport lets you use Laravel Passport’s OAuth2 server with MongoDB, storing clients, tokens, and related Passport data in Mongo collections instead of a relational database. Ideal for Laravel apps already built on MongoDB.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Authentication architecture: Decide whether MongoDB can remain the primary datastore while Laravel Passport provides OAuth2/API token auth, avoiding a separate relational database solely for Passport tables.
  • Build vs. buy for API auth: Compare adopting Passport plus this adapter against building custom token auth or buying a managed identity provider. This package lowers the “build” cost when the stack is already Laravel + MongoDB.
  • Roadmap enablement: Supports API/mobile authentication, personal access tokens, OAuth2 clients, and token-based access for first-party or partner integrations without re-platforming the data layer.
  • Platform standardization: Helps standardize Laravel-native auth patterns across services/products that have standardized on MongoDB, reducing bespoke auth implementations.
  • Technical debt and risk trade-off: Forces an explicit decision about relying on a small community package in a security-critical path versus forking/vendoring it or accepting a relational dependency.
  • Use-case fit: Useful when the product needs Passport’s OAuth2 capabilities but the team does not want to introduce MySQL/Postgres just to satisfy Passport’s default persistence assumptions.

When to Consider This Package

  • Consider it when the application already uses MongoDB as its primary Laravel datastore and Passport is the preferred OAuth2/token solution.
  • Consider it for a time-boxed technical spike to validate token issuance, refresh, revocation, client management, and personal access tokens against your Laravel/Passport/MongoDB versions.
  • Consider it when the team can pin dependency versions, run integration tests around auth flows, and accept responsibility for monitoring an MIT-licensed community package.
  • Consider it when avoiding a second database is a meaningful operational or cost win, and the auth requirements are standard Passport capabilities rather than enterprise identity features.
  • Look elsewhere when a relational database is already available; native Passport is simpler and better supported.
  • Look elsewhere when you need enterprise SSO/SAML, SCIM, advanced MFA, compliance certifications, vendor SLA, or a managed identity platform.
  • Look elsewhere if the team cannot fork or maintain the adapter, or if security policy requires commercially supported auth infrastructure.
  • Treat low adoption signals cautiously: verify compatibility, test coverage, issue responsiveness, and upgrade path before committing it to a production-critical auth path.

How to Pitch It (Stakeholders)

Executive summary: This package lets our Laravel application keep MongoDB as its system of record while still using Laravel Passport for API authentication. It can reduce time-to-market and avoid standing up a separate relational database just for OAuth2 token storage. The trade-off is dependency risk: it is a small, MIT-licensed community package in a security-sensitive area. Recommendation: run a short spike and security/engineering review, then adopt only if token lifecycle and upgrade testing pass; otherwise fall back to native Passport with a relational database or a managed identity provider.

For engineering: The adapter bridges Passport’s Eloquent assumptions to MongoDB. Validate client storage, access/refresh token flows, revocation, personal access tokens, and version compatibility. Pin versions, add integration tests, and document a fork/maintenance plan. Avoid custom OAuth code unless the adapter proves unsuitable.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource