Google Auth API Javascript idpiframe initialization error on Chrome

前端 未结 4 1880
庸人自扰
庸人自扰 2021-02-18 13:53

I use GSuite and I\'m coding a very simple web app to use Google Auth API, and I get an exception \"idpiframe_initialization_failed\".

Now I have the exact HTML as shown

4条回答
  •  难免孤独
    2021-02-18 14:32

    The problem is with Google's API console and how it handles creating credentials. It only seems to work when I access it through the following url https://developers.google.com/identity/sign-in/web/sign-in#before_you_begin There is a link that lets you create your app and the OAuth credentials. When I go to the console and create it through that screen it doesn't seem to work. After trying and re-create again and test with a fresh app I found out that the URL you add to the Authorized Javascript Origins doesn't always get added.

    If everything is good then the url should be available in the credentials page

提交回复
热议问题