I use authorization via oauth.vk.com
Docs here
When I call on web-browser
https://oauth.vk.com/authorize?client_id=1&display=page&redirect_uri=http://example.com/callback&scope=friends&response_type=token&v=5.80
After I sign in to vk.com
and accept permissions to my server vk.com
send Get
request like this:
http://example.com/callback#access_token=c9186f0de67865740b9bd920a67320142434422007d16cf79031734fd450657cd4ba221106ce7232e74b7&expires_in=86400&user_id=1&email=example@mail.com
I don't know how to take #access_token in my Get method
Parameters with ? like expires_in, user_id and email I can take like this
[Route("vkauth")]
public class VKAuthController : Controller {
[HttpGet]
public string Get_VkAuth([FromQuery] string access_token, string expires_in, string user_id, string email) {
}
But how to take parameter #access_token?