Why is Google Oauth returning `invalid redirect_urI` in my Rails app?

前端 未结 7 1780
一生所求
一生所求 2020-12-04 11:32

I\'m adding Google Oauth2 to a Rails app, but have been unable to get past the early stages.

I\'ve set up an app, and defined client ID and secret.But I\'m getting <

7条回答
  •  离开以前
    2020-12-04 12:01

    I faced this issue but found it was really not an issue. As explained in my blog you can use the public redirect URI even when you are working on your localhost development machine. Google will just return the authorization code to the public URI where you can cut and paste it to your local machine.

提交回复
热议问题