V
V
vixh2011-07-28 22:45:19
OAuth
vixh, 2011-07-28 22:45:19

OAuth2.0 authorization Vkontakte

Someone may come across, I implement server authorization vkontakte.ru/developers.php?o=-1&p=%C0%E2%F2%EE%F0%E8%E7%E0%F6%E8%FF%20%F1%E0% E9%F2%EE%E2 via contact.

After clicking on allow contact, it persistently redirects to

http:///
At least I pass the correct url in redirect_url and the base domain matches.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
vixh, 2011-07-29
@vixh

redirect_ur i instead of redirect_ur l

B
barker, 2011-07-29
@barker

90% of the problem is that the url (and adjacent parameters) are not escaped or escaped incorrectly.

V
vixh, 2011-07-29
@vixh

Escape the Python standard libraryurllib.urlencode( { 'client_id': VK_APP_ID, 'scope': VK_PERMS, 'redirect_url': redirect_uri, 'response_type': 'code' }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question