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 Openid Connect

Laravel Openid Connect Laravel Package

jeremy379/laravel-openid-connect

A Laravel package for adding OpenID Connect authentication to your app. Let users sign in through any compliant OIDC provider with a simple configuration-driven flow covering authorization, token exchange, and user info retrieval.

View on GitHub
Deep Wiki
Context7

Implement OpenID Connect inside Laravel

Frequently asked questions about Laravel Openid Connect
What is jeremy379/laravel-openid-connect and what does it do?
It is a Laravel-native OpenID Connect client package that adds relying-party authentication to a Laravel application. It runs a configuration-driven flow covering the authorization redirect, the token exchange, and retrieval of user info from the provider. It sits inside Laravel's existing auth and session model rather than replacing it, so users sign in through any compliant OIDC provider.
How do I install laravel-openid-connect with Composer?
Install it with Composer using the jeremy379/laravel-openid-connect package name, then let Laravel's package discovery register the service provider. You typically publish the package configuration file and fill in your provider's client ID, client secret, issuer or discovery URL, scopes, and redirect URI. After that you wire the login, callback, and logout routes into your application.
Which Laravel and PHP versions does this OIDC package support?
The package's official support matrix is defined by its Composer constraints and its CI workflow rather than by a marketing page, so check composer.json and the GitHub Actions matrix before committing. Release 3.3.0 added PHP 8.5 CI coverage and fixed deprecated ReflectionMethod::setAccessible() behavior, which is a positive forward-compatibility signal. Still validate your exact PHP and Laravel combination in staging, because CI coverage of one version does not prove every runtime combination.
Does it support OpenID Connect discovery and multiple providers?
The package is designed around provider metadata and a configuration-driven flow, so discovery-based setup and multiple provider configuration are the areas to confirm against the source and config file for your target version. Multi-provider setups are a common requirement for apps supporting several identity providers or tenants. Verify how the package selects a provider per request and whether your version supports that cleanly before designing around it.
Is laravel-openid-connect suitable for API-only or SPA applications?
It is a strong fit for server-rendered Laravel applications that use redirect-based login and session-based auth. It is a weaker fit for stateless APIs, mobile backends, or SPAs where token handling is owned by a separate identity layer. For those architectures you would need additional integration work or a different token-focused approach.
Is upgrading from 3.2.x to 3.3.0 a breaking change?
Release 3.3.0 is a maintenance and compatibility release: PHP 8.5 CI coverage plus a fix for deprecated ReflectionMethod::setAccessible() behavior. No API changes, new features, or breaking changes are advertised. Treat it as a low-risk minor update: bump the Composer constraint, run your test suite, and re-exercise the login, callback, and logout flows under your target PHP version.
How should I test the OpenID Connect login flow in Laravel?
Exercise discovery, the authorization redirect, the callback, logout, and failure paths in a staging Laravel app before rolling out. Add automated tests that mock the identity provider's discovery document, token endpoint, and user info endpoint so the flow is covered without network calls. Also assert error handling for invalid state, expired tokens, and provider outages, since an auth failure can block every user at once.
How does this compare to using Laravel Socialite for OIDC?
Socialite is built around social provider drivers and is convenient for common consumer identity providers. This package is focused specifically on the OpenID Connect protocol, so it targets compliant OIDC providers and the standard authorization, token, and user info steps. If your provider is a general OIDC issuer rather than a Socialite driver, an OIDC-specific client is usually the cleaner fit.
How actively is laravel-openid-connect maintained?
It is a community-supported package with a small contributor base, and the 3.3.0 release is a positive maintenance signal. A new contributor appearing in that release is mildly encouraging but is not a support commitment. For production authentication, plan for internal ownership of configuration, incident response, and upgrade testing rather than relying on upstream responsiveness.
What are the production risks of using this package for authentication?
The main risks are package-level: OIDC security correctness on authentication-critical paths, test depth, the supported Laravel and PHP version matrix, and maintainer cadence. Operationally, watch for identity-provider outages, misconfigured redirect URIs, rotated signing certificates, clock skew, session and cookie problems, and claim-mapping errors. Roll out behind a feature flag or a limited tenant cohort and keep the Composer lockfile as your rollback path.
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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo