Q
Q
qwead2018-01-05 09:21:28
OAuth
qwead, 2018-01-05 09:21:28

Am I understanding how oAuth works correctly?

user accesses webclient_myproject_ru
CASE #1 - No token
---------------------------------------- ------—
the application redirects it to auth_myproject_ru
where a form for authorization / registration appears
after the user logs in / registers, we
redirect him back to webclient_myproject_ru
------------------- ----------------------------------—
CASE #2 - There is a token
---------- ---------------------------------------------
make an ajax request to auth_myproject_ru ,
if SUCCESS comes in the response,
then EVERYTHING is OK, do a redirect to webclient_myproject_ru/home
if ERROR comes in the response,
then redirect to auth_myproject_ru
---------------------------------------------- ----------

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question