I am working on integration with vk.com. Their documentation says that you will be redirected after authorization to next url
http://REDIRECT_URI#access_token= 533bacf01e11f55b536a565b57531ad114461ae8736d6506a3&expires_in=86400&user_id=8492
And redirect happens but I don't see access_token, expires_in and user_id variables. I investigated HttpContext and didn't find these parameters.
This HttpContext.Request.Url
just shows me my url without #access_token= 533bacf01e11f55b536a565b57531ad114461ae8736d6506a3&expires_in=86400&user_id=8492
But if I replace # character with ? in url it works as expected.
I am working with vk api from ASP.NET MVC. Does anybody know how to get these parameters?
It's not possible to read fragment since it's not send to server (and VK probably do this for improved security of auth process) your option is to use JavaScript: