K
K
K. A.2016-12-03 01:50:01
JavaScript
K. A., 2016-12-03 01:50:01

Why does one application return access_token and another code?

I noticed an interesting point: there are 2 standalone applications with identical settings. But when referring to the link:

http:/oauth.vk.com/authorize?client_id=12345678&‌​scope=wall,offline&response‌​_type=token&v=5.60redirect_uri=http//site.ru/

after authorization, as it should, it redirects me to my site, which I specified in the redirect_uri, but only one application sends a redirect with #access_token:
site.ru/#access_token=<TOKEN>
and the other, when redirecting, throws #code:
site.ru/#code=<CODE></code>
Почему такое происходит с идентичными standalone-приложениями? При том, что при обращении в обоих случаях я передаю параметр <b>response_type=token</b>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kevin Mitnick, 2016-12-03
@volfing

Standalone applications in VK do not redirect to a third-party resource, this cannot be. They redirect the user to https://oauth.vk.com/blank.html , the address bar after the redirect will already contain all the necessary data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question