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 Passport Introspection

Laravel Passport Introspection Laravel Package

xcoorp/laravel-passport-introspection

Laravel Passport Introspection adds an OAuth2 token introspection endpoint to Laravel Passport, letting resource servers validate access tokens and retrieve token metadata such as scopes, expiry, and client details.

View on GitHub
Deep Wiki
Context7

Adds a Client Credentials secured, OAuth Introspection Endpoint to your Laravel Passport instance.

Frequently asked questions about Laravel Passport Introspection
How do I install xcoorp/laravel-passport-introspection in a Laravel app?
Install the package with Composer and confirm that Laravel Passport is already installed and configured as your OAuth 2.0 authorization server. Publish any package configuration or routes if the repository instructs you to do so, then expose the introspection endpoint according to the package documentation. Because the README excerpt is not included here, verify the exact install and publishing commands in the repository before rollout.
Does xcoorp/laravel-passport-introspection support Laravel 13?
Yes, version 2.0.1 explicitly adds Laravel 13 support according to the release context. You should still validate your exact Laravel, PHP, and Laravel Passport versions against the package Composer constraints in a clean branch. Run dependency resolution and composer why-not checks before committing to production.
What is an OAuth 2.0 introspection endpoint and why use it with Laravel Passport?
An introspection endpoint lets resource servers or API gateways validate an access token and retrieve metadata such as scopes, expiry, and client details. With Laravel Passport, this package adds that standard validation contract instead of forcing each service to parse tokens with bespoke logic. It is an integration layer around Passport, not a replacement for Passport itself.
Is the Laravel Passport introspection endpoint secured with Client Credentials?
The package overview describes the introspection endpoint as Client Credentials secured, which is appropriate for server-to-server token validation. You should still review the package configuration and middleware to confirm how client authentication, route protection, and error responses are enforced. Treat endpoint security as a required production review item because introspection is security-sensitive.
Does this package implement RFC 7662 and support both JWT and opaque tokens?
The package adds OAuth 2.0 token introspection, and RFC 7662 is the relevant standard for this capability. However, the release notes referenced here do not confirm whether the implementation supports JWT introspection, opaque tokens, or both. Review the package source and documentation, then test with the exact token formats your Laravel Passport instance issues.
How does the package handle expired, revoked, and malformed access tokens?
The provided overview and release notes do not specify the exact handling or response codes for expired, revoked, and malformed tokens. Before production use, test each case against real Passport tokens and confirm that inactive tokens return an appropriate introspection response. Also verify that revoked tokens are not reported as active after revocation.
Can I add caching or rate limiting to the introspection endpoint?
Caching and rate limiting are not confirmed in the release notes, so you should verify whether the package provides them directly or relies on Laravel middleware. Rate limiting can typically be added through route middleware, but caching token introspection results must account for revocation and expiry semantics. Do not cache active-token responses without a clear invalidation strategy.
How should I test this package before switching production traffic?
Start with a non-production spike on a Laravel 13 branch, install version 2.0.1, publish any configuration, and expose the introspection route. Validate responses using representative Passport access tokens, including active, expired, revoked, and malformed cases. If you already have custom token validation, run the package behind a feature flag and compare responses before switching traffic.
What are alternatives to using a Laravel Passport introspection endpoint?
Alternatives include local JWT validation in each resource server, custom token lookup against Passport, API gateway token validation, or moving to a different identity provider. A standard introspection endpoint centralizes validation and gives services a consistent contract, but it can add network latency and another runtime dependency. Use it when centralized token metadata validation is more valuable than fully local checks.
Is the package maintained, and can a patch release hide breaking changes?
Version 2.0.1 is a patch release that adds Laravel 13 support, which usually indicates a compatibility update rather than a breaking API change. Patch releases can still adjust dependency constraints or compatibility assumptions, so review the changelog and Composer diff before upgrading. Also check maintainer activity, license, test coverage, and the security disclosure process in the repository.
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