N
N
Narrator692015-02-19 00:58:52
JavaScript
Narrator69, 2015-02-19 00:58:52

OAuth authorization in vk.com using JS?

Hello. I can't figure out how to make authorization via OAuth for the site more convenient. The authorization algorithm itself is as follows: the user clicks on the link -> an authorization confirmation window opens -> if the user has confirmed authorization, a window opens with an access_token in the URL. In the last paragraph, the whole snag. How to wrap it all up so that the user only needs authorization, without dancing with copying the token? Please do not advise OpenAPI, OAuth authorization is needed.

PS A similar one is implemented here (on the right).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Bohdan Shtepan, 2015-02-19
@virtyaluk

No way.
OAuth is used by VKontakte to authorize desktop / mobile applications (there you can intercept the token).
Websites use Open API. Which api methods are quite enough.
Using the OAuth/Open API for other purposes is punishable by an application ban (read the rules on the site).

W
WTERH, 2015-02-19
@Expany

Why not rummage through the code at the attached link?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question