use url.parse to get the oauth callback path from absolute url