Repository navigation
Feature/44492 cake4 - #2
Merged
ACampanario merged 66 commits intoNov 19, 2026
Merged
Conversation
… and authorization
…s exist when not listed
… env vars, pin v2
Reject null, false and scalar identities from Mcp.auth.identity, expand oauth test scopes with the declared resource's implies, add McpConfig::rbacPermissions(), make mcp check read the cakedc/users authenticators and guard the oauth plugin class.
…re authentication
2.x: rebuild on mcp/sdk and OAuth 2.1 support
- One 2.0.0 entry for the rewrite and OAuth 2.1 (the 1.0.0 tag was this code by mistake). - mcp check reads Token authenticators of cakedc/cakephp-oauth-server 1.0.0 that protect several resources. - Install docs for the stable oauth packages on Packagist; CI checks them out at 1.0.0.
…authentication, cakedc/auth and migrations, drop the OAuth and JWT dependencies, and run CI on 1.next-cake4 with PHP 8.2 to 8.4
…5: only host mode is left, any other Mcp.auth.mode fails at bootstrap and in mcp check, and the OAuth tests, fixtures and docs are deleted
…, no Plugin::setCollection(), read multiple console options from their raw value; PHPStan level 8 and phpcs pass
…: data providers as annotations, the command runner for console tests, Authentication 2 identifiers and laminas-diactoros factories; mcp check and the docs follow the CakePHP 4 log scopes (false takes only unscoped messages)
…/log 1, which CakePHP 4.5 still allows with the lowest dependencies
…ion 2 identifiers and CakePHP 4 queries in the examples, what is not available in 1.x, and the 1.1.0 changelog
… keeping the composer.json of the port
…diactoros 2.x, which does not install on PHP 8.4; the controller docblock names host mode only, and the changelog marks the 2.x entries as that line's history
steinkel
reviewed
Nov 19, 2026
added 2 commits
November 19, 2026 16:07
… to 8.2 and 8.3 like laminas-diactoros 2.x
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports 2.1.1 to CakePHP 4.5+ and replaces the
1.next-cake4prototype. Tag 1.1.0 after merge. Do not reuse 1.0.0: it is the CakePHP 5 code tagged by mistake.Not ported (needs CakePHP 5): OAuth 2.1, which means the
oauthandexternalauth modes, the protected resource metadata, the scope policy andassertMcpInsufficientScope(). Onlyhostmode remains. Any other mode fails at bootstrap. The README lists this under "Not available in 1.x".Main changes from 2.1.1:
mcp check, PHPUnit 9 and Authentication 2.psr/log^2 || ^3.Verified: