A
A
aesfur2018-04-07 17:47:47
In contact with
aesfur, 2018-04-07 17:47:47

Authorization through VKontakte, what is the logic of work?

Hello. A question. For example, there is a site with VKontakte authorization. The user created a site account and linked a VK account to it (i.e., the token is already saved in the database).
How to proceed with authorization?
For example, the user is logged out and wants to log in via VK authorization (without entering the site password).
What actions/requests need to be performed on the server side to check the user and authorize him on the site?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2018-04-08
@saboteur_kiev

Read the VKontakte API documentation.
You check that the user vk/idXXXXX is visiting you, for which you make a request to the VK API, which confirms this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question