メインコンテンツにスキップ

Google OAuth

Configure Google OAuth in the Google API Console.

Configure in Google Cloud

  1. Create or select a project. Open APIs & ServicesOAuth consent screen and configure the consent screen.
  2. Go to CredentialsCreate credentialsOAuth client ID. Choose application type (e.g. Web application) and set Authorized redirect URIs.

プロジェクトの設定 同意の設定を行う アプリの登録 認証情報 認証情報の作成

Authorized redirect URIs in Google must be Casdoor’s callback URL. In Casdoor, the application Redirect URL is your application’s callback URL. See Application config.
  1. After creating the client, copy the Client ID and Client Secret.

クライアント

Add the provider in Casdoor

Create an OAuth provider, set Type to Google, and enter the Client ID and Client Secret.

Googleプロバイダー

Optional: phone number scope

If you enable Get password (or need the user’s phone number), enable the Google People API and add the scope https://www.googleapis.com/auth/user.phonenumbers.read to the provider.

Google People Api Google Provider Scope