ADmad/cakephp-social-auth

Compatibility with cakephp/authentication

Closed this issue · 1 comments

Hi, I've migrated from AuthComponent to cakephp/authentication as mentioned in the official CakePHP documentation.
But cakephp-social-auth doesn't seem to work anymore with cakephp/authentication.
How to make it work?
I didn't find any information about social auth in the cakephp/authentication documentation.
So I don't know how I can implement something like that.

ADmad commented

Set the sessionKey config of the SocialAuthMiddleware to same name as used by the cakephp/authentication to store user record in session and ensure SocialAuthMiddleware is loaded before AuthenticationMiddleware.