D
D
Dmitry Maslennikov2017-08-16 23:32:22
In contact with
Dmitry Maslennikov, 2017-08-16 23:32:22

How to fix VK Auth authorization error?

When trying to authorize through a contact:

https://oauth.vk.com/authorize?client_id=xxxxxx&display=popup&redirect_uri=https://site.com/verify&scope=friends&response_type=token&v=5.68

An error pops up:
{"error":"invalid_request","error_description":"Security Error"}

It is displayed at:
https://oauth.vk.com/error?err=2

The error occurs only if I log in as a user with an old Vkontakte session. When authorizing through a user with a fresh session or when they log in, everything works fine. It's the same on other sites. No redirection to the Redirect URI, at least with an error code, also occurs (the documentation says that the redirection is in progress).
Now VK developers offer the following solution:
The error often appears if you have an old session. You just need to re-login in the browser version.

As you can see, this is not quite a normal solution. Ordinary users will not log in again just to register (they won't even know about it, because it just pops up an error window).
Who faced this problem? How can it be solved so that authorization takes place for all users, including those with old sessions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Kolevatov, 2017-11-08
@artkolev

You need to re-login in the VK browser session
Discussion in the VK API

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question