Weave Code
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

Login Convenience Bundle Laravel Package

ac/login-convenience-bundle

Symfony bundle that streamlines JSON API authentication with OpenID via FpOpenIdBundle. Includes a base User class, JSON login/logout endpoints, auth-header session storage (no cookies), reload-less OpenID flow support, trusted providers, and dummy login mode.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • API-First Authentication: Enables seamless OpenID-based authentication for JSON web APIs, aligning with modern headless architectures (e.g., SPAs, mobile apps, or microservices).
  • Reduced DevOps Overhead: Eliminates cookie-based session management in favor of Authorization header sessions, simplifying CORS and cross-domain auth flows (critical for multi-platform apps).
  • Dev/Stage Flexibility: "Dummy login mode" accelerates local testing without requiring real OpenID providers, speeding up iteration.
  • Security-Centric Path Protection: Fine-grained path-based security (via secured_paths in security.yml) reduces misconfigurations in API gateways.
  • Roadmap for Identity Federation: Abstract User class and OpenID integration lay groundwork for future SSO (e.g., OAuth2, SAML) without rewriting auth logic.
  • Build vs. Buy: Avoids reinventing OpenID/Symfony auth wheels; leverages FpOpenIdBundle as a foundation while adding JSON/API-specific conveniences.

When to Consider This Package

  • Avoid if:
    • Your stack isn’t Symfony + JSON API (e.g., Node.js, Django, or cookie-based apps).
    • You need OAuth2/Social Logins (e.g., Google, Facebook) out of the box (this is OpenID-only).
    • Your team lacks Symfony familiarity (steep learning curve for AppKernel, security.yml).
    • You require enterprise-grade auditing (e.g., JWT validation, detailed logs)—this is lightweight.
    • Your API is server-rendered (e.g., traditional PHP apps with cookies).
  • Consider if:
    • You’re building a headless API for mobile/SPAs and want header-based sessions.
    • OpenID is a strategic requirement (e.g., edu/government sectors where OpenID is standard).
    • Your team needs quick OpenID integration without deep Symfony security customization.
    • You prioritize simplicity over features (e.g., small teams, MVPs).

How to Pitch It (Stakeholders)

For Executives:

"This package lets us ship OpenID authentication for our API in days, not weeks*. By replacing cookie-based sessions with header-based auth, we eliminate CORS headaches for our mobile/web apps. It’s like ‘login-as-a-service’ for Symfony—no reinventing wheels, and the ‘dummy login’ mode keeps devs productive. Low risk, high reward for our API-first roadmap."*

For Engineering:

*"If we’re using Symfony for our JSON API and need OpenID:

  • Pros: Abstracts 80% of auth boilerplate (users, sessions, routes), supports header-based sessions (critical for SPAs), and includes dev-friendly dummy logins.
  • Cons: Tightly coupled to Symfony/FpOpenIdBundle (hard to swap later), limited to OpenID (no OAuth2), and minimal community support (1 star, but functional). Recommendation: Pilot for a non-critical API endpoint first. If it works, we can extend it for core auth. Alternatives: Custom Symfony security config or a dedicated auth service (e.g., Auth0)."*

For Developers:

*"This bundle saves you from:

  1. Writing OpenID login/logout endpoints from scratch.
  2. Debugging cookie/session issues in APIs.
  3. Manually implementing User entity CRUD. Tradeoff: You’ll need to:
  • Learn Symfony’s security.yml and AppKernel.
  • Accept OpenID-only (no Google/Facebook buttons).
  • Handle migrations for User/OpenIdIdentity tables. Try it if you’re already using Symfony and want OpenID without the pain."*
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.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope