Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8.next: Cake5 compatiblity #75

Closed
wants to merge 17 commits into from

Conversation

LordSimal
Copy link
Contributor

This PR provides compatibility with the current Cake5 beta-1

This also of course required the following base adjustments in the composer.json

    "require": {
        "php": ">=8.1.0",
        "cakephp/cakephp": "5.x-dev"
    },
    "require-dev": {
        "cakephp/authorization": "3.x-dev",
        "cakephp/cakephp-codesniffer": "^5.0",
        "cakephp/authentication": "3.x-dev",
    }

This also updates PHPStan and Psalm to the latest versions as well as PHPUnit to 9.5

I first tried to make CakeDC/Users Cake5 compatible but saw, that this plugin needs to be updated beforehand.

Since the current main branch is 6.next-cake4 I first did all the adjustments based on that one.
Unfortunately I realized pretty late that 8.next-cake4 was present as well.

Therefore I just merged 8.next into mine and fixed all the merge conflicts afterwards.

arodu and others added 14 commits January 22, 2022 14:26
# Conflicts:
#	.github/workflows/ci.yml
#	composer.json
#	config/bootstrap.php
#	phpstan.neon
#	phpunit.xml.dist
#	src/Exception/InvalidProviderException.php
#	src/Exception/InvalidSettingsException.php
#	src/Rbac/Rules/AbstractRule.php
#	src/Rbac/Rules/Owner.php
#	src/Traits/IsAuthorizedTrait.php
#	tests/Fixture/PostsFixture.php
#	tests/Fixture/PostsUsersFixture.php
#	tests/Fixture/SocialAccountsFixture.php
#	tests/Fixture/UsersFixture.php
#	tests/TestCase/Authenticator/CookieAuthenticatorTest.php
#	tests/TestCase/Authenticator/SocialAuthenticatorTest.php
#	tests/TestCase/Authenticator/TwoFactorAuthenticatorTest.php
#	tests/TestCase/Controller/Component/OneTimePasswordAuthenticatorComponentTest.php
#	tests/TestCase/Middleware/RbacMiddlewareTest.php
#	tests/TestCase/Middleware/SocialAuthMiddlewareTest.php
#	tests/TestCase/Middleware/TwoFactorMiddlewareTest.php
#	tests/TestCase/Rbac/Rules/OwnerTest.php
#	tests/TestCase/Social/Service/OAuth1ServiceTest.php
#	tests/TestCase/Social/Service/OAuth2ServiceTest.php
#	tests/TestCase/Traits/IsAuthorizedTraitTest.php
#	tests/bootstrap.php
#	tests/schema.php
['provider' => implode('|', array_keys(Configure::read('OAuth.providers')))]
);
});
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been moved to the routes() method of the Plugin class

@@ -19,25 +19,25 @@
*
* @package CakeDC\Auth\Auth
*/
class DefaultWebauthn2fAuthenticationChecker implements Webauthn2fAuthenticationCheckerInterface
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just a renamed to match the filename

@LordSimal
Copy link
Contributor Author

due to the fact that I only checked compsoer stan but not composer analyse I only fixed phpstan issues first.
This state now is as clean as I can get it right now without digging deeper.

@rochamarcelo
Copy link
Contributor

rochamarcelo commented Dec 28, 2022

@steinkel Should this be in a new branch n.next-cake5 or are we going to renamte 8.next-cake4 to 8.next.cake5

PS: I don't see tags for 8.x

@rochamarcelo
Copy link
Contributor

Using this branch at CakeDC/users#1015 [WIP]

@steinkel
Copy link
Member

steinkel commented Jan 9, 2023

I'd say tagging 8.x as it is now and using a 9.next-cake5 would be the way to go, thanks!

@steinkel steinkel deleted the branch CakeDC:8.next-cake4 January 9, 2023 18:10
@steinkel steinkel closed this Jan 9, 2023
@LordSimal LordSimal mentioned this pull request Jan 10, 2023
@LordSimal LordSimal deleted the 8.next-cake4 branch January 18, 2023 12:47
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.

6 participants