2014-07-20 90 views
0

我想實現社交媒體登錄功能到我的網站,我必須允許用戶使用他們現有的Google或Facebook憑據登錄到我的網站。如何刪除Google App Engine OAuth 2.0客戶端ID?

我看了一些文章後發現,對於Google登錄,我需要使用Google+ API。所以我在我的HTML頁面中添加了一些Javascript和HTML代碼,並嘗試登錄,但我收到以下錯誤。

401. That’s an error. 

Error: invalid_client 

Application: mytestapplication 

You can email the developer of this application at: [email protected] 

no registered origin 

我試着創建新的OAuth ID,但已經有太多的ID,我無法刪除它們中的任何一個。我已經嘗試了此應用程序的所有client-id,但沒有一個client-id正在工作。

任何人都可以告訴我如何實現sign-in with google功能?如何刪除並創建新的client-id

回答

1

最後一行是重要的:

no registered origin 

在API憑據頁上,單擊Edit SettingsClient ID for web application部分。把你的網址(http://example.com)。

相關問題