title: redirect_uri_mismatch the redirect URI in the request does not match the ones authorized for the OAuth client
body: <p>I have following client secret</p>
  
  <pre><code>{
    "web": {
      "client_id": "testid",
      "project_id": "testproj",
      "auth_uri": "https://accounts.google.com/o/oauth2/auth",
      "token_uri": "https://www.googleapis.com/oauth2/v3/token",
      "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
      "client_secret": "test-sec",
      "redirect_uris": [
        "https://localhost:8080/oauth2callback"
      ]
    }
  }
  </code></pre>
  
  <p>and I am getting </p>
  
  <blockquote>
    <p>"Error: redirect_uri_mismatch
    The redirect URI in the request, <a href="http://127.0.0.1:8414/authorize/" rel="nofollow noreferrer">http://127.0.0.1:8414/authorize/</a>, does not match the ones authorized for the OAuth client. </p>
  </blockquote>
  
  <p>To update the authorized redirect URIs, visit:". Could you please suggest, how to fix it.</p>
  
  <p>I am using C#. I have created credentials with this - </p>
  
  <pre><code>GoogleWebAuthorizationBroker.AuthorizeAsync( GoogleClientSecrets.Load(stream).Secrets, scopes,
                                               "user",
                                                CancellationToken.None, 
                                                new FileDataStore(Directory.GetCurrentDirectory() + "\\AccessToken\\" , 
                                               true)).Result; 
  </code></pre>
  
  <p>But for first time , it popped up with login and once I logged in , it has created <code>Google.Apis.Auth.OAuth2.Responses.TokenResponse-user</code> file in the folder. Is there a way to bypass first time login ? </p>
  
  <p>Thanks.</p>