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

前端 未结 7 1781
一生所求
一生所求 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 11:49

    For me it was the function that built up the google url. I put line breaks in the string, once I removed the line breaks the url worked again.

提交回复
热议问题