S
S
schwabsergey2016-10-05 15:26:50
Yii
schwabsergey, 2016-10-05 15:26:50

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

Hello! Let's say you need to make an application (mail client) that receives data from GMAIL via the IMAP protocol. Naturally, to connect to the server, the username and password from the Google account are used.
Here's my question:
is it possible to set up user authorization in YII so that the program accepts a login / password from real mail -> authorizes 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 will allow you to implement something similar? Perhaps there is an approximate implementation scheme?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2016-10-05
@schwabsergey

The technology that you describe is called OAuth/OAuth 2.0.
See an example for Google Authorization in Yii 2.0
https://code.tutsplus.com/tutorials/how-to-program...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question