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

Laravelpassport Laravel Package

socialiteproviders/laravelpassport

Laravel Passport OAuth provider for Laravel Socialite. Adds a passport driver so your app can authenticate users against any Laravel Passport server using standard OAuth2 flows, with minimal setup and familiar Socialite syntax.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit. Unchanged by 4.3.0. This package remains a thin adapter: a single LaravelPassportProvider extending Socialite's AbstractProvider, registered through Socialite::extend or the SocialiteProviders manager. It introduces no new auth architecture — it plugs a Laravel Passport OAuth2 server into Socialite's authorization-code flow. That is a clean fit for a Laravel shop already using Socialite for social login and either running Passport internally or consuming a Passport-based identity server, because it reuses the existing Socialite facade, user provider, and guard wiring. It is not a general OAuth2/OIDC client: no discovery document, no JWKS, no id_token validation. If the identity server is not Passport-shaped (specifically, does not expose a user endpoint the provider can parse), this is the wrong tool.

Integration feasibility. Low effort on our side: one Composer dependency, a config/services.php block, two routes, and a controller. The real work sits server-side — defining the /user contract (id, name, email, avatar), scoping tokens, and registering redirect URIs. Realistic estimate is hours to a couple of days, dominated by server coordination rather than package integration. The binding constraint remains compatibility, not complexity — and the 4.3.0 release is the first thing to check against our pinned laravel/socialite constraint, since a minor bump in this package is most likely a widened or narrowed Socialite version range in composer.json rather than a behavioural change.

Technical risk.

Revised on 4.3.0.

  • Maintenance staleness — partially retired. The prior assessment flagged the last tagged release as August 2022. A 4.3.0 tag now exists, so upstream is not dead. Two caveats keep this from being a clean bill of health: a single release after a multi-year gap is not a maintenance trend, and the release notes we were given contain only a compare link with no changelog body, so we cannot state what changed without reading the diff. Treat "upstream is active" as unconfirmed until we have reviewed compare/4.2.0...4.3.0 and the composer.json constraint delta.
  • Semver expectation, not guarantee. A 4.2.0 → 4.3.0 bump implies backwards-compatible additions. Verify against the diff before trusting it; small community providers do not reliably follow semver, and the failure would surface at install or first login, not at code review.
  • Signature drift risk is unchanged in kind. If 4.3.0 did adjust for a newer Socialite contract, that is good news for pinning to current Laravel, but it may also have raised the minimum Socialite/PHP floor, which would affect us if we are on an older major.
  • Adoption signal still weak. 62 stars and 0 Packagist dependents remain the numbers we have; a fresh release does not retroactively create production-usage evidence. Verify whether dependents are undercounted because teams pull the meta-package.
  • Contract assumptions. The provider assumes a particular user payload shape; a Passport server we control will not match it by default, so we own that mapping. A minor release could change expected field names — another reason to read the diff.
  • Security posture. No PKCE support — assumes a confidential client with a secret. No refresh-token handling, because Socialite is login-time only; if we need to call the Passport server's APIs afterward, that token lifecycle is ours to build. Nothing in the release signal suggests this changed.
  • Supply chain. Community-maintained under the SocialiteProviders org, no SLA.

Key questions.

  1. What is actually in compare/4.2.0...4.3.0 — dependency constraint changes only, or code changes to getAuthUrl/getUserByToken/mapUserToObject?
  2. Did 4.3.0 raise the minimum laravel/socialite, Laravel, or PHP version, and does that floor sit above or below our pins?
  3. Which Socialite major is our app pinned to, and does this provider satisfy its AbstractProvider contract on that version?
  4. Which Passport version is the server, and does it already expose a user endpoint — or are we building one?
  5. Do我们会 need PKCE, refresh tokens, or downstream API calls to the Passport server? (No evidence 4.3.0 added any of these.)
  6. What claims and scopes are required (email verification, roles, tenant)?
  7. Is 4.3.0 a one-off courtesy release or the start of resumed maintenance? Check commit cadence since the 2022 tag, not just the tag itself.
  8. Are we willing to vendor/fork behind an internal namespace if upstream goes quiet again?
  9. Does the license and org governance clear supply-chain policy?

Integration Approach

Stack fit. Unchanged. Laravel + Socialite + Passport are all first-party. If Passport already issues API tokens for us, reusing it as the SSO authority avoids standing up a second identity system — still the strongest argument for this package over a generic OIDC client.

Migration path. Unchanged. If replacing a bespoke OAuth client or a different SSO, run both in parallel behind a feature flag with dual login entry points. Keep the legacy path live until a full authorization-code cycle has succeeded in production for real users, including edge cases like expired codes and revoked clients.

Compatibility. Pin exact versions of socialiteproviders/laravelpassport, laravel/socialite, and the Passport server. New step given 4.3.0: diff the two tags and record the dependency-constraint delta in the ticket before pinning, so we know whether 4.3.0 is a drop-in or requires a Socialite/PHP move on our side. Add a CI smoke test that executes the authorization-code exchange against a staging Passport instance — unit tests will not catch signature drift. Explicitly validate PHP 8.2/8.3 and Laravel 10/11 before committing; if the package fails, budget for a fork rather than blocking on upstream.

Sequencing.

  1. Read the 4.2.0→4.3.0 diff and composer.json; classify as constraint-only vs. behavioural.
  2. Agree the /user response contract and required scopes with the Passport server owners.
  3. Register a staging client and redirect URI.
  4. Spike the install on a branch at 4.3.0 and drive the full flow end to end.
  5. Decide build-vs-fork vs. pin-to-4.3.0 based on the spike outcome.
  6. Implement controller, routes, config, and failure-path tests.
  7. Instrument login success/failure metrics.
  8. Roll out internal-first, then general.

Operational Impact

Maintenance. Code surface is tiny, so ongoing cost is almost entirely version-drift triage at each Laravel/Socialite major bump. 4.3.0 is a modest positive signal — someone is still holding the keys — but it does not change the operating model: budget a recurring review per framework upgrade and keep a fork ready to absorb a one-line signature fix. Update the internal package-health record to note the current tag so the "stale since 2022" flag stops firing on future reviews.

Support. Community-only, no SLA. The 4.3.0 tag is evidence the repo is not archived, but one release after a long dormancy is not an SLA and not a responsiveness commitment. Assign an internal owner and document the fork process; do not assume upstream will triage a P1.

Scaling. Effectively free and unchanged. The handshake is per-login and stateless from our app's side; the load lands on the Passport server's token and user endpoints, which should be rate-limited and monitored like any other auth dependency.

Failure modes. redirect_uri_mismatch, invalid_client, consumed or expired authorization codes, 5xx from the user endpoint, unmapped user fields producing null users, stale config cache after credential rotation, clock skew on token validation, silent breakage on a Socialite upgrade, and total lockout if the Passport server is unavailable. Add for this release: an unverified minor upgrade is itself a failure mode — if 4.3.0 changed the expected /user payload or the Socialite constraint, it fails at first login rather than at deploy, so gate the upgrade behind the staging smoke test in a canary before widening. The material risk is still total lockout on Passport server unavailability — mandate a break-glass local admin login path that does not traverse the provider.

Ramp-up. A mid-level Laravel developer can integrate in under a day; the learning curve is the Passport server's client/scope model, not this package. Pair them with the team owning that server and put the flow, scopes, and failure codes in the runbook. Add the 4.2.0→4.3.0 diff summary to that runbook so the next upgrade does not restart the investigation from zero.

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