Identity Platform で電話番号を使用してユーザーをログインさせる

このドキュメントでは、Identity Platform を使用して電話番号でユーザーのログインを行う方法について説明します。

始める前に

  1. アカウントにログインします。 Google Cloud を初めて使用する場合は、 アカウントを作成して、実際のシナリオで Google プロダクトのパフォーマンスを評価してください。 Google Cloud新規のお客様には、ワークロードの実行、テスト、デプロイができる無料クレジット $300 分を差し上げます。
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  3. Verify that billing is enabled for your Google Cloud project.

  4. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  5. Verify that billing is enabled for your Google Cloud project.

  6. Identity Platform を有効にします。その方法については、 クイックスタートをご覧ください。

Identity Platform で電話番号によるログインを有効にする

  1. [ID プロバイダ] ページに移動します。

    [ID プロバイダ] に移動

  2. [ID プロバイダ] ページで [プロバイダを追加] をクリックします。

  3. [**プロバイダの選択**] リストで、 [電話番号] を選択します。

  4. [Enabled] をオンに切り替えます。

  5. プロバイダの設定を保存するには、[保存] をクリックします。

アプリ プラットフォームで電話番号によるログインを構成する

Apple、Android、ウェブ プラットフォームで Identity Platform を使用している場合は、Firebase コンソールからアプリを構成する必要があります。

次のステップ

  • 開発用にテスト用電話番号を登録する方法を確認する。
  • SMS リージョンを使用して Identity Platform SMS 検証の使用を制限する方法を確認する