Skip to content

Add nested OAuth resource metadata regression coverage#178

Merged
pushpak1300 merged 2 commits into
laravel:mainfrom
Gujiassh:fix/nested-oauth-resource-metadata
Mar 19, 2026
Merged

Add nested OAuth resource metadata regression coverage#178
pushpak1300 merged 2 commits into
laravel:mainfrom
Gujiassh:fix/nested-oauth-resource-metadata

Conversation

@Gujiassh
Copy link
Copy Markdown
Contributor

Summary

  • add feature coverage for nested MCP paths when AddWwwAuthenticateHeader builds the OAuth resource_metadata URL
  • prove that nested paths like mcp/nested/test-oauth-401 keep their full path in the WWW-Authenticate header instead of truncating to a single segment
  • keep production middleware behavior unchanged and scoped this follow-up to regression coverage only

Validation

  • vendor/bin/pest tests/Feature/Console/StartCommandTest.php --filter='nested MCP paths|OAuth WWW-Authenticate header when OAuth routes are enabled'
  • vendor/bin/pest tests/Feature/Console/StartCommandTest.php
  • vendor/bin/pint --test tests/Feature/Console/StartCommandTest.php

@pushpak1300 pushpak1300 merged commit 9a79e31 into laravel:main Mar 19, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants