I am working on project that will use API of another application. So I won't validate password on my app, will do this via API request. I don't want to store users` passwords in db. Just check password by API.
How can I authenticate a user without login credentials?
On successful authentication using your third-party provider you use the
login() function using
$identity should be an object of
[IdentityInterface] usually the User ActiveRecord model implementing this interface
Refer to the guide documentation on Authentication for full understanding on how authentication works in Yii2