public static void ErrorParser()
        {
            AccessTokenErrorResponse _parser = new AccessTokenErrorResponse();
            string source = "\u003Chead>\u003C/head>\u003Cbody>\u003Cpre style=\"word-wrap: break-word; white-space: pre-wrap;\">error=redirect_uri_mismatch&error_description=redirect_uri%20must%20match%20configuration\u003C/pre>\u003C/body>";


            bool parseResult = _parser.Validate(source);
        }
 protected override void ThrowIfErrorResponse(HttpResponseMessage httpResponse)
 {
     if (httpResponse.StatusCode != System.Net.HttpStatusCode.OK)
     {
         string responseContent = httpResponse.Content.ReadAsStringAsync().Result;
         AccessTokenErrorResponse oauthResponse = JsonConvert.DeserializeObject <AccessTokenErrorResponse>(responseContent);
         throw new Exception(oauthResponse.Description);
     }
 }
        public SalesForceWebView()
        {
            InitializeComponent();

            CommunitiesWebView.Navigated  += OnWebViewNavigated;
            CommunitiesWebView.Navigating += OnWebViewNavigating;

            _requestCallback = new AccessTokenResponseManager();
            _errorParser     = new AccessTokenErrorResponse();

            _nonce = Guid.NewGuid().ToString("N").ToUpper();
            _state = Guid.NewGuid().ToString("N").ToUpper();
        }