[英]Unable to enable google oauth2 with devise
我正在嘗試通過谷歌啟用 OAuth。 我已經配置了回調 URL 但是在嘗試進行身份驗證時出現錯誤消息
The redirect URI in the request, https://example.com/users/auth/google_oauth2/callback, does not match the ones authorized for the OAuth client
I set Authorized JavaScript origins to https://example.com
and the redirect to https://example.com/users/auth/google_oauth2/callback
.
我正在使用 devise 4.3.3
我的目標是跟蹤 HTTPS 消息,以便您可以准確地看到通過網絡發送的內容 - 使用 Fiddler 或 Charles 等工具。
Web UI 的標准消息看起來像我寫的那些。 谷歌消息將是等效的。
希望這種方法能讓您解決自己的問題。 如果沒有,請使用完整的 HTTP 消息詳細信息更新您的問題
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.