public GoogleIdTokenInfoRequest(string idToken) { var queriesString = QueryStringsUtilities.ConvertQueriesToString(new System.Collections.Specialized.NameValueCollection() { { "id_token", idToken } }); tokenInfoUri = new Uri($"https://oauth2.googleapis.com/tokeninfo{queriesString}"); _request = HttpWebRequest.CreateHttp(tokenInfoUri); _request.Method = Method; _request.ContentLength = 0; }
protected virtual string GetQueries() => QueryStringsUtilities.ConvertQueriesToString(BuildQueries());
protected virtual string RetrieveCodeFromRedirectDeeplink(string deeplink) { var queriesCollection = QueryStringsUtilities.ConvertStringQueries(new Uri(deeplink)); return(queriesCollection["code"]); }