public static object ParseErrorBody(string tokenBody)
        {
            var jobject = JToken.Parse(tokenBody) as JObject;
            var token   = new OAuth2Error();

            foreach (var jprop in jobject.Properties())
            {
                switch (jprop.Name)
                {
                case "error":
                    token.Error = (string)jprop.Value;
                    break;

                case "error_description":
                    token.ErrorDescription = (string)jprop.Value;
                    break;

                case "error_uri":
                    token.ErrorUri = (string)jprop.Value;
                    break;
                }
            }

            return(token);
        }
        public static object ParseErrorBody(string tokenBody)
        {
            var jobject = JToken.Parse(tokenBody) as JObject;
            var token = new OAuth2Error();
            foreach (var jprop in jobject.Properties())
            {
                switch (jprop.Name)
                {
                    case "error":
                        token.Error = (string)jprop.Value;
                        break;
                    case "error_description":
                        token.ErrorDescription = (string)jprop.Value;
                        break;
                    case "error_uri":
                        token.ErrorUri = (string)jprop.Value;
                        break;

                }
            }

            return token;
        }