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 Laravel Package

auth0-samples/laravel

A Laravel sample app demonstrating Auth0 integration, including login/logout, user profiles, protected routes, and SDK configuration. Use it as a reference for adding Auth0 authentication to Laravel applications.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for authentication. This sample is a cheap way to pressure-test the "buy" side of the auth decision: it shows what a working Auth0 + Laravel integration actually looks like (login/logout routes, callback handling, session establishment, middleware-protected routes, user profile retrieval) before you commit to a paid Auth0 plan or a multi-sprint homegrown build.
  • Enterprise/SSO roadmap sizing. If SSO, MFA, passwordless, or social login are on the roadmap, the sample demonstrates the shape of the integration and the surfaces your app must touch (routes, middleware, session, user model mapping). That informs whether "enterprise auth" is a one-sprint integration or a quarter-long program.
  • Migration off homegrown auth. Use it as a reference architecture for moving from Laravel's built-in guards/Breeze/Fortify to an external IdP, so engineering can estimate blast radius on session handling, middleware, and user records.
  • Vendor evaluation and DX scoring. It is a direct signal on Auth0's Laravel developer experience: how much boilerplate, how config is structured, how much of your domain model leaks into the IdP. Useful input for a scorecard comparing Auth0 vs. Cognito vs. Keycloak vs. self-managed.
  • Spike scoping. It converts an auth proof-of-concept from "research OIDC in Laravel" to "adapt a known-good reference," which is the difference between a 2-week and a 2-day spike.
  • Not a decision input for: production dependency selection. This is a sample app, not the SDK. The artifact you would actually adopt is auth0/laravel-auth0; this repo is documentation-by-example.

When to Consider This Package

Consider it when:

  • You are evaluating Auth0 specifically for a Laravel app and want a runnable reference to validate the integration model and developer experience in hours, not weeks.
  • You need a teaching artifact for engineers unfamiliar with OIDC/OAuth2 flows in a Laravel context — callback handling, session vs. token, middleware guards.
  • You want to scope a migration from Laravel's native auth (Breeze/Fortify/Socialite) to an external IdP; the sample shows which files and concepts change.
  • You are on (or can tolerate) Laravel 9-era patterns for a throwaway spike or internal demo.
  • You need to answer "what does 'add SSO' actually cost?" with something concrete for a stakeholder conversation.

Look elsewhere when:

  • You intend to ship it. Do not vendor or fork a sample repo. Adopt the maintained SDK (auth0/laravel-auth0) and Auth0's official quickstart; treat this repo as read-only reference.
  • You are on a current Laravel version. Samples lag. Verify framework/version compatibility and dependency freshness before relying on any pattern shown; expect to re-derive rather than copy.
  • Your auth needs are simple. If you need email/password, a couple of social logins, and nothing enterprise, Laravel Breeze/Fortify plus Socialite is less vendor surface, less cost, and less lock-in.
  • You need support guarantees, SLAs, or a security response process. MIT license, 46 stars, low activity signal (score 2.08) — there is no maintenance commitment here. The supported surface is the SDK and the vendor, not this repo.
  • You need multi-tenant, B2B orgs, or fine-grained authorization beyond what the sample demonstrates — go to Auth0's Organizations/RBAC docs and the SDK, not the sample.
  • Compliance is the driver (SOC 2, HIPAA, data residency). The sample is silent on those; that's a vendor-contract conversation.

How to Pitch It (Stakeholders)

One-liner: A small, free reference application that shows how Auth0 plugs into Laravel — valuable as a de-risking and estimation tool for the auth buy-vs-build decision, not as code we ship.

For executives: Authentication is a recurring "must we build it?" question with real cost and compliance weight. This sample lets us validate the buy path — enterprise SSO, MFA, social login — against our actual framework in days instead of a multi-week spike, and gives us concrete effort numbers for the roadmap conversation. It costs nothing to evaluate. It is explicitly not production code: adopting it as a dependency would be a mistake, and the supported product is Auth0's SDK plus a commercial relationship. Recommendation is to timebox a spike, score Auth0 against alternatives on integration effort and lock-in, and make the build-vs-buy call with evidence.

For engineering: Treat it as documentation-by-example. Read it for route/middleware/session patterns and the shape of the user-model mapping; do not composer require it or copy it wholesale. It is pinned to Laravel 9 patterns and is a sample repo with low maintenance signal, so anything we take from it must be re-validated against the current auth0/laravel-auth0 SDK and our Laravel version. Budget roughly a day to stand it up against a dev tenant and produce a short write-up: what the integration touches, what it hides (token refresh, logout propagation, error paths), and what our own auth surface would need to change.

Bottom line: High value per hour as an evaluation artifact; zero value as a dependency. Fund the spike, not the fork.

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.
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
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core