Manually Logging Users using Authentication Plugin in Cakephp 4

Hi

Right now I am using AuthComponent in my CakePHP 4 app, and i am not using login form to login, instead of I am using google login so when page redirect from google I am checking data and using $this->Auth->setUser()
(
AuthComponent - 4.x )

Now the AuthComponent is deprecated so i am trying to Authentication Plugin ( Quick Start - 2.x ) but did not find anything about Manually Logging in document.

How to Manually Logging user without Post the form (email id and password )

Thanks

See the comments about setIdentity here.

1 Like

Thanks i missed that part.