-
Notifications
You must be signed in to change notification settings - Fork 294
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
Automatic login when I logout from site in cakephp 5.x #1061
Comments
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 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) |
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?
The text was updated successfully, but these errors were encountered: