Answer the question
In order to leave comments, you need to log in
How to write authorization through a VKontakte account?
There is a site on a python (on bottle).
You need to attach authorization through VK api.
On the Internet, instructions are everywhere on how to use authorization by obtaining a key.
But how to implement the scheme: the user enters the site, presses a button, a window appears asking for rights?
I have already registered the application in VK. What's next?
Answer the question
In order to leave comments, you need to log in
Obviously this is client side functionality, hence the JavaScript SDK.
Then we follow in accordance with the documentation Authorization based on OAuth 2.0 , in this case we have Authorization code flow (ACF) .
In fact, you need to implement the REDIRECT_URI logic (note: example.com/callback) , get the code parameter and send a get request to https://oauth.vk.com/access_token , example:
Result:
Having received such a result, we can already say that the user has authorized on your site, then using the access_token you access the rest of the VK API.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question