M
M
mindgrow2018-03-04 12:48:00
ASP.NET
mindgrow, 2018-03-04 12:48:00

ASP MVC Authorization via Vkontakte - Does not redirect to the authorization page. How to fix it?

Good afternoon!
I'm testing authorization in VK. Created an empty asp mvc application with authorization. Added package https://github.com/DukeNuken/Duke.Owin.VkontakteMi... for authorization in VK. I set up everything as described there.
Set up and created an application in VK.
5a9bc04140c65010930510.png
At first, when I clicked through authorization in VK, I was redirected to the authorization page. I logged in there BUT when returning, the ASP MVC application did not transfer me to the authorization status.
Now, when I click on authorization through VK, it takes me back to the page from which I chose the authorization method.
Tried clearing cookies and cache - didn't help.
When authorizing through Google - authorization passed. But in the future, if I log out from my site and log in again, I will log in without entering a password. It feels like there's a "remember me" checkbox somewhere, but I don't know where. And the session does not seem to be broken.
How to understand why this happens and how to fix it?
For example, here is my test project https://github.com/vailukhin/TestVKAuth

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VK API, 2018-03-04
@mindgrow

Most likely, the problem is that the library does not specify the API version parameter - V in the authorization requests. Recently, requests without this parameter return an error: https://vk.com/dev/version_update

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question