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;
        }
예제 #2
0
 protected virtual string GetQueries()
 => QueryStringsUtilities.ConvertQueriesToString(BuildQueries());