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

后端 未结 3 1195
-上瘾入骨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条回答
  •  -上瘾入骨i
    2021-01-11 14:39

    It is not immediately apparent as to where to do this in my opinion, so here are some useful screenshots.

    1) Navigate to the Credentials screen... something like "https://console.developers.google.com/apis/credentials...."

    2) Click on your 'Oauth 2 client I.D.' link.. in this case it is "Web client 1"

    2) At the bottom of the screen you can add your site url like - "http://localhost:[some number]/signin-google" and save.

提交回复
热议问题