M
M
MrKMV342015-12-31 13:21:10
Django
MrKMV34, 2015-12-31 13:21:10

Django registration via VK. Create an app?

Hello!
I want to register on the site using VK. Site on Django, so far local, i.e. at localhost:8000
For authorization I use python-social-auth.
I made all the settings as advised in the documentation.
When creating a VK application, I selected the application type Website and then configured it as in the screenshot
d0a75c26d53449859a6fd7dba72a673a.png
And now when I contact the address, http://127.0.0.1:8000/login/vk-oauth2they return it to me

{"error":"invalid_request","error_description":"redirect_uri is incorrect, check application redirect uri in the settings page"}

What redirect_uri do I need to specify in order for authorization to proceed normally?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MrKMV34, 2015-01-02
@MrKMV34

Solved the problem, thanks to Valery Ryaboshapko , redirect_uri must be specified 127.0.0.1:8000/complete/vk-oauth2

E
Evgeny Maltsev, 2015-12-31
@hellpirat

Try typing instead of localhost, 127.0.0.1:8000

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question