title: Google oauth authorization error. 'Error 400: redirect_uri_mismatch'
body: <p>why I am getting this error when i try to authorize my Oauth app.</p>
  <pre><code>Authorization Error
  Error 400: redirect_uri_mismatch
  You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy. \n\nIf you're the app developer, register the redirect URI in the Google Cloud Console.
  Learn more
  Request Details 
  redirect_uri=http://localhost:8080/
  </code></pre>
  <p>The redirect URL <code>https://localhost:8080</code> is registered in the google cloud console but still, i am getting this error.</p>
  <p>Python file</p>
  <pre class="lang-py prettyprint-override"><code>from google_auth_oauthlib.flow import InstalledAppFlow
  
  flow = InstalledAppFlow.from_client_secrets_file('client_secrets.json',
  scopes = ['https://www.googleapis.com/auth/youtube.readonly'])
  
  flow.run_local_server(port=8080)
  </code></pre>
  <p>client_secrets.json</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;web&quot;: {
      &quot;client_id&quot;: &quot;$id&quot;,
      &quot;project_id&quot;: &quot;youtube-constant-update&quot;,
      &quot;auth_uri&quot;: &quot;https://accounts.google.com/o/oauth2/auth&quot;,
      &quot;token_uri&quot;: &quot;https://oauth2.googleapis.com/token&quot;,
      &quot;auth_provider_x509_cert_url&quot;: &quot;https://www.googleapis.com/oauth2/v1/certs&quot;,
      &quot;client_secret&quot;: &quot;$secret&quot;,
      &quot;redirect_uris&quot;: [&quot;https://localhost:8080&quot;]
    }
  }
  </code></pre>
  <p>Any type of support/help is appreciated</p>
  <p>Thanks</p>