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

admin9/laravel-oidc-server

Laravel OIDC Server provides an OpenID Connect provider for Laravel apps, with discovery, JWKS, authorization code flow, and token endpoints. Add standards-based SSO and identity to your Laravel project with minimal configuration.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for identity. If your product needs to be the identity provider (issuing tokens to your own mobile apps, a second product line, or partner integrations), the default buy path is Auth0/Okta/Keycloak/Entra — priced per MAU and hard to unwind later. This package makes "stay on Laravel Passport, add the OIDC layer ourselves" a credible third option, because it supplies the standards surface (Discovery, JWKS, UserInfo, Introspection, Revocation, RP-initiated Logout) that Passport deliberately omits. That is a roadmap-level decision about where customer identity lives, not just a library choice.
  • Unblocking SSO across a first-party portfolio. A shared Laravel user table plus OIDC means app #2, #3, and the mobile client authenticate against one issuer instead of re-implementing login or syncing passwords. This is usually the cheapest path to "one account, all products" and a prerequisite for cross-sell and unified billing.
  • Third-party / partner integrations. Opening your platform to partner apps requires a documented, standards-compliant authorization server with discovery metadata and JWKS so partners don't need bespoke integration work. This package is the difference between "here's our OAuth docs, good luck" and "point your OIDC client at our issuer URL."
  • Enterprise deal enablement — with a caveat. It helps when the customer's apps must trust your portal as the IdP, or when you need a standards-based session/logout story for security questionnaires. It does not solve the more common enterprise ask (federating their Okta into your app as a SAML/OIDC service provider) — that's a separate track and often a different buy decision.
  • De-risking a Passport investment. Teams already on Passport get an incremental upgrade path rather than a migration. That reframes "we should move off Passport" from a forced re-platform into an optional, later evaluation.
  • Scope containment. Because it's protocol-only, it keeps MFA, passwordless, user profile management, and consent UI as product decisions you make rather than features a vendor bundles and prices for.

When to Consider This Package

Consider it when all of the following hold:

  • You are already running Laravel Passport (or are committed to it) and the identity data of record lives in your Laravel database.
  • Your consumers are OIDC clients you control or can influence — not a long tail of unknown third parties demanding certifications.
  • You have in-house PHP depth to read, pin, and if necessary fork a small dependency; you are comfortable owning the security posture of a token-issuing surface.
  • The functional gaps are the standard ones: discovery document, key rotation via JWKS, userinfo claims, introspection for resource servers, revocation, and logout. You are not chasing FAPI, DPoP, mTLS-bound tokens, or SAML.
  • You can absorb a pre-adoption dependency: 6 stars, 0 dependents, and a single recent release mean there is no ecosystem proof, no Stack Overflow corpus, and no support contract. Budget a timeboxed spike that exercises token issuance, key rotation, and logout end-to-end before it appears on a roadmap.

Look elsewhere — or plan to build — when:

  • You need mature, audited, vendor-backed identity. Regulated environments, SOC2/ISO evidence requirements, or a security team that will ask "who is on the hook when this breaks?" A 6-star MIT package cannot answer that. Use Keycloak (self-hosted, free, heavyweight) or a managed IdP.
  • You need enterprise federation as a service provider. Buy or build SAML/OIDC SP support; this package is the opposite direction.
  • You need user lifecycle beyond the protocol: MFA, passkeys, password policy, account recovery, SCIM provisioning, admin UI. These are product surface area this package intentionally does not provide — budget them separately, and their cost may dwarf the protocol layer.
  • You need SAML. Not in scope, and bridging it is a project in itself.
  • You have no appetite for maintaining a fork. With 0 dependents, you will be the first to hit edge cases, and the first to notice when Passport's internals shift under it.
  • The IdP is not a differentiator. If identity is pure table stakes, the cheapest defensible managed option is usually the right call, and engineering time is better spent on the product.

How to Pitch It (Stakeholders)

To executives (2 sentences): This is an MIT-licensed Laravel package that turns our existing Passport login into a standards-compliant OpenID Connect provider, which lets us offer single sign-on across our products and to partners without paying per-user fees to an identity vendor. It's a small, cheap bet that keeps customer identity in-house and preserves the option to buy later — the risk is that it is a young, single-maintainer project, so I'd sequence it as a timeboxed technical spike with a fork-and-own fallback rather than a committed platform bet.

To engineering: It's a thin OIDC layer over Passport — discovery, JWKS with key rotation, userinfo, introspection, revocation, RP-initiated logout. Value is that we don't hand-roll standards-critical crypto and metadata. Cost is that it's pre-adoption (6 stars, 0 dependents, one maintainer), so treat it as source we adopt and own: pin the version, vendor or fork it, add integration tests around token issuance and key rotation, get a security review on claim mapping and the logout/introspection semantics, and confirm our required flows (PKCE, refresh rotation, scopes) are actually covered before we put it on the roadmap. If the spike shows gaps, the fallback is Keycloak or a managed IdP — and we'll know that within the spike, not after a launch.

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.
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator