LoginSignup
5
1

More than 3 years have passed since last update.

GoogleAPIの認証で「Permission denied to generate login hint for target domain.」エラーの解決

Posted at

自分用メモ。

Google APIsの「認証情報」にて、「OAuth 2.0 クライアント ID」を作りローカルで動かすも、「Permission denied to generate login hint for target domain.」というエラーで繋がらない。

ううむ、クイックスタートでサンプルをまんま動かした時は動いたのに。

この記事のおかげで解決。

Google認証は、「127.0.0.1」というIPアドレスは認めておらず、「actual urls」というらしい?いわゆるaaa.jpやbbb.comといった形式でないとエラーを返す模様。

クイックスタートでは「localhost」でやっていたが、今回は「127.0.0.1」でやってしまっていたことが原因。

「localhost」にアドレスを変えるだけで、すんなり解決。

5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1