How to add or change return uri in google console for oAuth2

后端 未结 3 1197
-上瘾入骨i
-上瘾入骨i 2021-01-11 14:20

I want to use google oAuth from my webservice i have created new oAuth key but when I use it i get

Error: redirect_uri_mismatch
The redirect URI in the requ         


        
3条回答
  •  Happy的楠姐
    2021-01-11 14:37

    My problem was that I have created an Client ID for "Service account". And didn't even tried the wizard for "Web application". Because my controller was making a web request the Web Application option is the right one. Silly me.

    Under the Web Application Client ID settings you can adjust the return uri, and Service Account settings don't have that option.

提交回复
热议问题