You can't.
There is a big difference between hash (#
) and query string (?
). The query string is send to the server, the hash isn't.
So the url send to the server is: http://localhost:4567/Test/Callback
.
The only option you have to get the 'hash' to the server is by using a query string:
http://localhost:4567/Test/Callback?state=test&access_token=...