Google OAuth2 Authorizing OAuth token error: redirect_uri_mismatch

后端 未结 11 1792
青春惊慌失措
青春惊慌失措 2020-11-30 06:59

I am Creating and Authorizing an OAuth Token according to this webpage: https://code.google.com/p/google-mail-oauth2-tools/wiki/OAuth2DotPyRunThrough

But I got this

相关标签:
11条回答
  • 2020-11-30 07:05

    2015July15 - working signin started causing Error 400 with Error: redirect_uri_mismatch

    i posted a solution on a similar SO QUESTION: changed loading script to

    <script src="https://apis.google.com/js/client:platform.js?onload=startApp></script>
    
    0 讨论(0)
  • 2020-11-30 07:06

    For my web application i corrected my mistake by writing

    instead of : http://localhost:11472/authorize/
    type :      http://localhost/authorize/
    
    0 讨论(0)
  • 2020-11-30 07:12

    The redirect_uri (urn:ietf:wg:oauth:2.0:oob) is only applicable to those Google client ids that have been generated for installed applications. You can go to your console and create a new client id of this type.

    0 讨论(0)
  • 2020-11-30 07:12

    For anybody that is still stumped with this problem, you must have the 'Platform' set to 'Native (Windows Mobile, Blackberry, desktop, devices, and more)' when registering your app in the Google Cloud Console, otherwise, it will not let you use 'urn:ietf:wg:oauth:2.0:oob' as the redirect URI.

    0 讨论(0)
  • 2020-11-30 07:13

    In my case, instead of creating web app, i just chose Other in: OAuth Client ID > Other

    and thats it.

    0 讨论(0)
  • 2020-11-30 07:19

    I was getting this error, because I was incorrectly following the steps for installed application flow here

    https://github.com/googleads/googleads-python-lib/wiki

    instead of the server to server flow.

    0 讨论(0)
提交回复
热议问题