oauth.vk.com/logout is not working. What other options are there?
Closed due to the fact that off-topic participants aleksandr barakin , Kromster , MAXOPKA , Peter Olson , Vladimir Glinskikh 28 Aug '15 at 3:25 .
It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:
- " Questionnaires are forbidden on Stack Overflow in Russian . To get an answer, rephrase your question so that it can be given an unambiguously correct answer." - aleksandr barakin, MAXOPKA, Vladimir Glinskikh
- A little more detail: which application (third-party server, Standalone?) You end up with access_token. Well, forget it, for example. - Sergiks
- Standalone. Yes, I get a token. Forget I better your strange comment - SwiftStudier
- What do you expect as a result of “logout”? - Sergiks
- Obviously - the ability to log in to another user - SwiftStudier
- No matter how strange it may sound - forget in the application the token that you received, and reset the application to its initial state. Congratulations - you have logged out. - Sergiks
1 answer
I will assume that you use a web component for authorization in order to log in to VC and issue permission to your Standalone application. And your question is not about OAuth-logout, if you can put it that way, but about going out in this web component.
The direct answer to your initial question is still the same: forget the access_token received.
How to make a web component reset a session and erase all cookies depends on its specific implementation.
Update
Links like vk.com/logout is unknown to me. In the desktop and mobile versions of the site, the exit link contains hash sessions and does not work without parameters. There is a method OpenAPI VK.Auth.logout() , but it is unlikely that your application uses OpenApi.
"Dump cook - collective farm method."
This is your way. Implement it exactly.
- Dump cook - collective farm method. Is it really impossible to do this reference-vkshno done? - SwiftStudier
- And if someone snaps a token, then let him use it - he is hardly going to forget it. Should there be any normal possibility? - Qwertiy ♦
- If we assume that the author of the application is a villain , then all the methods provided for them to exit are unreliable. Then a long way: VKontakte go to Applications - My Applications - Settings , and in the "Remove" list all unnecessary applications. The short way is to change your VKontakte password. Moreover, all previously issued tokens lose their relevance. - Sergiks