Google OAuth2 Authorizing OAuth token error: redirect_uri_mismatch

后端 未结 11 1812
青春惊慌失措
青春惊慌失措 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:20

    For my native app, I tried dozens of different things. I finally got it to work by using "redirect_uri=http%3A%2F%2Flocalhost%3A1234" where 1234 is the port number. This has to be identical in the two requests (authorization code and the access token). Notice the use of percent encoding.

提交回复
热议问题