T
T
Tyrion Lannister2017-03-14 23:02:34
In contact with
Tyrion Lannister, 2017-03-14 23:02:34

How to pass access_token to VK Oauth 2 server?

Thank you in advance
I honestly did not find the answer in the documentation.
Authorization Code Flow
I pass parameters https://oauth.vk.com/access_token?parameters with code. I get an http response in the form of an html page with an access_token. I need the token to be passed to the server via a GET request.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
entermix, 2017-03-14
@entermix

1. Send the user to https://oauth.vk.com/authorize with the required GET parameters: client_id, redirect_uri
2. After authorization, the user will be redirected to your redirect_uri, where you should receive a GET code parameter
3. Perform a POST request from your server at https://oauth.vk.com/access_token with required parameters: client_id, client_secret, redirect_uri, code
https://vk.com/dev/authcode_flow_user
Why do you think that access_token can be obtained as a GET parameter? What for then in general dances with code, etc.?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question