laravel/passport
Laravel Passport provides a full OAuth2 server for Laravel, making API authentication simple with access tokens, personal access tokens, and client credentials. Officially maintained, with extensive docs and integrations for securing first- and third-party APIs.
laravel/sanctum) with a battle-tested OAuth2 server.Build vs. Buy:
guzzlehttp/oauth-subscriber).league/oauth2-client instead).*"Laravel Passport lets us ship a secure, standards-compliant OAuth2 API in weeks—not months. It’s the difference between:
Key Metrics to Track:
*"Passport gives us a production-ready OAuth2 server with zero lock-in. Here’s how we’ll leverage it:
throttle).Client model.Trade-offs:
Alternatives Considered:
Next Steps:
*"Passport addresses critical OAuth2 risks:
Token model to log issuance/revocation events to SIEM.Mitigations for Known Issues:
Passport::tokensExpireIn() and refreshTokensExpireIn() to enforce short lifetimes.How can I help you explore Laravel packages today?