SecurityComponent, DependencyInjection).laravel/socialite already handles this for popular providers (e.g., Google, GitHub), reducing urgency for this bundle unless supporting niche providers (e.g., Toshl, Stereomood).socialite supports ~20+ out-of-the-box. This bundle could fill gaps for legacy or obscure providers but adds maintenance overhead.HttpFoundation, Security, and DependencyInjection components. Laravel’s equivalents (e.g., Illuminate\Http, Illuminate/Auth) are incompatible without adapters.
Authenticator interface to Laravel’s Guard system.hwi_oauth.yaml) would need conversion to Laravel’s PHP/ENV-based config (e.g., config/services.php).Events system is similar but not identical; events would need mapping (e.g., hwi.oauth.connect → custom Laravel events).laravel-hwioauth) would mitigate this but introduce duplication risk.socialite is actively maintained, reducing long-term viability.symfony/console for CLI tools)?Authenticator to Laravel’s UserProvider).league/oauth2-client).hwi_oauth.user.mapping → Laravel’s User model).laravel-hwioauth) with:
config/ structure.socialite with the wrapper for targeted providers.Events.monolog/monolog v1).hwi_oauth_user. Migrate to Laravel’s migrations or use Doctrine schema updates.| Step | Task | Dependencies | Owner |
|---|---|---|---|
| 1 | Audit provider requirements | None | TPM/Dev |
| 2 | Design wrapper architecture | PoC results | Backend Lead |
| 3 | Implement minimal wrapper (1 provider) | league/oauth2-client |
Dev |
| 4 | Test auth flow + user mapping | Step 3 | QA |
| 5 | Expand to 2–3 providers | Step 4 | Dev |
| 6 | Benchmark performance | Step 5 | DevOps |
| 7 | Publish as Laravel package | Steps 1–6 | TPM |
| 8 | Deprecate Symfony bundle | Step 7 | TPM |
Log facade).| Issue Type | Support Level | Escalation Path |
|---|---|---|
| Laravel wrapper bug | High | Internal Dev Team |
| HWIOAuthBundle bug | Low | Community/Fork |
| Provider API change | Medium | Vendor Docs + Workarounds |
| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Provider API outage | Broken auth for users | Fallback to local auth + user notification |
| Token revocation | Session invalidation | Implement refresh_token logic |
| CSRF attack | Session hijacking | Use Laravel’s VerifyCsrfToken + HWIOAuth’s CSRF checks |
| Database corruption | Lost OAuth data | Regular backups + schema migrations |
| Wrapper bug | Auth failures | Feature flags + rollback plan |
How can I help you explore Laravel packages today?