Skip to content Skip to sidebar Skip to footer

Google Apis Oauth 2.0 Redirect_uri_mismatch Error

I am trying to set up a Google Drive API instance with Python to download files. I set up an OAuth 2.0 Client ID on my Google APIs Console for a specific project and have enabled t

Solution 1:

Please modify as follows.

  1. Please set the redirect uri at "Google APIs Console's credentials section" of Google Cloud Platform as follows. When you modified it, please save it. And please confirm whether the redirect url was modified.

    • From

        http://localhost:8080
      
    • To

        http://localhost:8080/
      
  2. Please modify your script as follows. From your replying, I understand that you are using the script of Quickstart for python.

    • From

      creds = flow.run_local_server(port=0)
      
    • To

      creds = flow.run_local_server(port=8080)
      
  3. Run the script and authorize.

Post a Comment for "Google Apis Oauth 2.0 Redirect_uri_mismatch Error"