title: Authenticate with Octokit.net and push with LibGit2Sharp to GitHub repository
body: <p>I use the LibGit2Sharp library to clone/push the authenticated user's GitHub repository, but LibGit2Sharp doesn't accept an access token to authorize the user. </p>
  
  <pre><code> LibGit2Sharp.Credentials credentials = new UsernamePasswordCredentials()
          {
              Username = "username",
              Password = "password"
          };
  </code></pre>
  
  <p>So I have an access token comes from Octokit.NET and I want to use this token to push to the authorized user repository with LibGit2Sharp.</p>
  
  <p>Are there any way to do this trick? If I know well, Octokit.NET couldn't perform push requests at this time.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>As Carlos Martín Nieto and Ivan Zuzak suggest, I modified the code:</p>
  
  <pre><code> LibGit2Sharp.Credentials credentials = new UsernamePasswordCredentials()
      {
          Username = "the-access-token",
          Password = string.Empty
      };
  </code></pre>
  
  <p>And after I use my push logic:</p>
  
  <pre><code> var pushOptions = new PushOptions() { Credentials = credentials};
  
   Remote remote = repo.Network.Remotes["origin"];
  
   LibGit2Sharp.Signature author = new LibGit2Sharp.Signature("name", "email", DateTime.Now);
  
   repo.Network.Push(remote,"HEAD",@"refs/heads/master",pushOptions, author, null);
  </code></pre>
  
  <p>This logic works fine with the hard-coded username and password, but now I have got an exception at the last line, says " LibGit2Sharp.LibGit2SharpException: Request failed with status code: 403"</p>
  
  <p>I missed something from the implementation or I made a mistake at Push() method?</p>
  
  <p>Thank you very much!</p>