我的網站曾經有一個鏈接,允許用戶在Open ID 2.0中使用他們的Google帳戶登錄。自2015年4月20日起,此功能不再有效,因此我正嘗試遷移到Google Sign-In。什麼是我的google-signin-client_id
本頁面: https://developers.google.com/identity/sign-in/web/sign-in#specify_your_apps_client_id
說:
指定你在谷歌開發者控制檯您的應用程序與谷歌的式登入-CLIENT_ID元元建立的客戶編號。
我不知道我的客戶端ID是什麼。在我的Google Developers Console中: https://console.developers.google.com/project
只有一個我用GoogleApp創建的非常舊的應用程序,與我所談論的網站完全沒有關係。我嘗試使用其項目編號,無論如何,然後點擊登入按鈕後,得到了以下錯誤:
401. That’s an error.
Error: invalid_client
The OAuth client was not found.
Request Details
fetch_basic_profile=true
scope=email profile openid
response_type=permission
redirect_uri=storagerelay://http/localhost?id=auth684995
ss_domain=http://localhost
client_id=imitatorgwt.apps.googleusercontent.com
openid.realm=
That’s all we know.
我應該寫什麼究竟在谷歌式登入-CLIENT_ID meta標籤?
謝謝!根據遷移指南,我寫了一個完整的工作流程。很遺憾我們必須爲Google做文檔... –
我們已經更新了文檔,並提供了有關如何創建項目+客戶端的說明(請參閱https://developers.google.com/identity/sign-in/web/devconsole-project),以便開發人員更輕鬆地查找前鋒。感謝您報告這個問題Erel! –