title: GoogleWebAuthorizationBroker.AuthorizeAsync freezes
body: <p>I have a C# .net web application that I use to upload videos to Youtube.  This worked about 6 months ago but now it has stopped working.  The following code just hangs when I launch my website via Visual Studio on my local computer:</p>
  
  <pre><code>     UserCredential credential;
      using (var auth_stream = new FileStream(Server.MapPath("~/YouTube/client_secrets.json"), FileMode.Open, FileAccess.Read))
      {
          credential = await GoogleWebAuthorizationBroker.AuthorizeAsync(
              GoogleClientSecrets.Load(auth_stream).Secrets,
              // This OAuth 2.0 access scope allows an application to upload files to the
              // authenticated user's YouTube channel, but doesn't allow other types of access.
              new[] { YouTubeService.Scope.YoutubeUpload },
              "user",
              CancellationToken.None
          );
      }
  </code></pre>
  
  <p>I have also tried the following after looking at other posts on stack overflow:</p>
  
  <pre><code>     UserCredential credentialS;
       using (var auth_stream = new FileStream(Server.MapPath("~/YouTube/client_secrets.json"), FileMode.Open, FileAccess.Read))
       {
           credentialS = await GoogleWebAuthorizationBroker.AuthorizeAsync(
               new ClientSecrets
               {
                   ClientId = "blahblah-myDetailsBlahBLah.apps.googleusercontent.com",
                   ClientSecret = "myClientSecret",
               },
               // This OAuth 2.0 access scope allows an application to upload files to the
               // authenticated user's YouTube channel, but doesn't allow other types of access.
               new[] { YouTubeService.Scope.YoutubeUpload },
               "user",
               CancellationToken.None
           );
       }
  </code></pre>
  
  <p>I also notived that I was using version 1.7.0-beta of the Google APIs so I upgraded via PackageManager console to version 1.8.2.</p>
  
  <p>I also generated a new Client Secret via the Google Developer Console and used that in my website.</p>
  
  <p>But after trying these steps the call to <strong>GoogleWebAuthorizationBroker.AuthorizeAsync</strong> still hangs.
  I notice that my website in my local browser refreshes as if its attempting to connect but the call is never seccessful.</p>
  
  <p>How can I solve this??</p>