Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Для VkontakteApi.authorize нужен доп параметр redirect_uri #6

Closed
targence opened this issue Sep 28, 2012 · 4 comments

Comments

@targence
Copy link
Contributor

У ВК немного поменялись правила авторизации, точнее стали проверять наличие redirect_uri в запросе на токен, раньше не просили.

Вот доказательства,

http://vk.com/topic-1_21972169?post=52899
http://xsave.ru/topic-1_21972158?post=52679

Причем все хитро у них для старых приложений (правда не всегда) остается совместимость.
На новых без redirect_uri работать не будет.

@7even
Copy link
Owner

7even commented Sep 28, 2012

Спасибо. Попробуй пожалуйста подключить vkontakte_api прямо с гитхаба, в последнем коммите должно работать.

@djshafran
Copy link

vkontakte_api-1.0/lib/vkontakte_api/authorization.rb:51
token = client.auth_code.get_token(code, 'redirect_uri' => VkontakteApi.redirect_uri)

Уже хотел попробовать комит прислать, но не успел )))

@targence
Copy link
Contributor Author

все работает, спасибо

@7even
Copy link
Owner

7even commented Dec 17, 2012

Реализовано в версии 1.1.

@7even 7even closed this as completed Dec 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants