Closed mdeanquin0520 closed 1 month ago
If you are using the defaults, check this line > https://github.com/CakeDC/users/blob/11.next-cake4/config/users.php#L178 that enables the CookieAuthentication, also check your browser for a cookie set named CookieAuth
, I think that could be the reason of the user auto-login.
About the type issues, check you are correctly importing the classes, it could be a class or interface not imported.
@mdeanquin0520 when using the plugin you have authentication|authorization pre-configured, check https://github.com/CakeDC/users/blob/11.next-cake4/Docs/Documentation/Authentication.md , https://github.com/CakeDC/users/blob/11.next-cake4/Docs/Documentation/Authorization.md and make sure to create a config/permissions.php file to allow access your controllers (https://github.com/CakeDC/users/blob/11.next-cake4/config/permissions.php)
@mdeanquin0520 have you tried suggestions? Can we close the issue?
When I logout of the site the site logs me in again automatically. This is the code for login action:
This is the code for logout action:
And I have the default code for /config/users.php and /config/permissions.php Let me clarify that the getAuthenticationService and getAuthorizationService from App\Application look different than what you put in the tutorial to configure the Authentication and Authorization services in this plugin, this is the code for getAuthenticationService method in Application.php:
And this is the code for getAuthorizationService method in Application.php:
As you can see my version of both methods doesn't have the ResponseInterface parameter because it gives me this error: How can I solve this issue?