How to set up authorization YII2 (third-party authorization, extensions for authorization)?

Development | Web Development
Hello! Suppose you need to make an application(mail client) that receives data from the GMAIL via the IMAP protocol.Naturally, to connect to the server, the username and password from a Google account are used.

Here is my question:
is it possible to configure user authentication in YII so that the program accepts a login/password from real mail ->authorized the user and after that the login/password data could be used in the application to communicate with the mail server.
Perhaps there are extensions that allow you to implement something like that? Perhaps there is an approximate implementation scheme?
No attachments
All coments
This job has not been commented yet.