Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions auth4genai/integrations/google.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ To set up a Google social connection, you must:

## Prerequisites

1. [Sign up for a Google Developer account](https://console.developers.google.com/).
2. [Create a Google project](https://support.google.com/googleapi/answer/6251787?ref_topic=7014522).
1. [Sign up for a Google Cloud account](https://console.cloud.google.com/).
2. [Create a Google project](https://docs.cloud.google.com/resource-manager/docs/creating-managing-projects).

## Google Auth Platform

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const Prerequisites = ({

steps.push(
<Step key="google-connection" title="Configure Google Social Integration">
Set up a Google developer account that allows for external API calls by
Set up a Google Cloud account that allows for external API calls by
following the <a href="/integrations/google">Google Social Integration</a>{" "}
instructions.
</Step>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Before proceeding, you will need a valid Google Workspace account and must have

## Set up your app in Google

To allow users to log in using Google Workspace, you must register your application in the Google developer console.
To allow users to log in using Google Workspace, you must register your application in the Google Cloud console.

<Warning>

Expand Down Expand Up @@ -107,7 +107,7 @@ Google Workspace does not enforce group name uniqueness. To access extended grou

</Warning>

Next, you will need to create and configure a Google Workspace Enterprise Connection in Auth0. Make sure you have the **Client ID** and **Client Secret** generated when you set up your app in the Google developer console.
Next, you will need to create and configure a Google Workspace Enterprise Connection in Auth0. Make sure you have the **Client ID** and **Client Secret** generated when you set up your app in the Google Cloud console.

1. Navigate to [Auth0 Dashboard > Authentication > Enterprise](https://manage.auth0.com/#/connections/enterprise), locate **Google Workspace**, and click its `+`.

Expand All @@ -131,11 +131,11 @@ Next, you will need to create and configure a Google Workspace Enterprise Connec
</tr>
<tr>
<td><strong>Client ID</strong></td>
<td>Unique identifier for your registered Google application. Enter the saved value of the <strong>Client ID</strong> for the app you just registered in the Google developer console.</td>
<td>Unique identifier for your registered Google application. Enter the saved value of the <strong>Client ID</strong> for the app you just registered in the Google Cloud console.</td>
</tr>
<tr>
<td><strong>Client Secret</strong></td>
<td>String used to gain access to your registered Google application. Enter the saved value of the <strong>Client Secret</strong> for the app you just registered in the Google developer console.</td>
<td>String used to gain access to your registered Google application. Enter the saved value of the <strong>Client Secret</strong> for the app you just registered in the Google Cloud console.</td>
</tr>
<tr>
<td><strong>Attributes</strong></td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ You cannot use [Auth0 developer keys](/docs/authenticate/identity-providers/soci

## Configure Google Workspace connections

If you want to use your custom domain with Google Workspace connections, you must update the Authorized Redirect URI in your <Tooltip tip="OAuth 2.0: Authorization framework that defines authorization protocols and workflows." cta="View Glossary" href="/docs/glossary?term=OAuth">OAuth</Tooltip> Client Settings. In the Google Developer Console, go to **Credentials**, choose your OAuth client in the list, and you will see a settings page with the app <Tooltip tip="Client ID: Identification value given to your registered resource from Auth0." cta="View Glossary" href="/docs/glossary?term=Client+ID">Client ID</Tooltip>, secret, and other fields. In the **Authorized redirect URIs** field, add a URL in the format `https://<YOUR-CUSTOM-DOMAIN>/login/callback` that includes your custom domain (such as `https://login.northwind.com/login/callback`).
If you want to use your custom domain with Google Workspace connections, you must update the Authorized Redirect URI in your <Tooltip tip="OAuth 2.0: Authorization framework that defines authorization protocols and workflows." cta="View Glossary" href="/docs/glossary?term=OAuth">OAuth</Tooltip> Client Settings. In the Google Cloud Console, go to **Credentials**, choose your OAuth client in the list, and you will see a settings page with the app <Tooltip tip="Client ID: Identification value given to your registered resource from Auth0." cta="View Glossary" href="/docs/glossary?term=Client+ID">Client ID</Tooltip>, secret, and other fields. In the **Authorized redirect URIs** field, add a URL in the format `https://<YOUR-CUSTOM-DOMAIN>/login/callback` that includes your custom domain (such as `https://login.northwind.com/login/callback`).

## APIs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,27 @@ Vous pouvez vérifier la version la plus récente dans [Readme](https://github.c

#### Google Developers Console

1. Rendez-vous dans la [Google Developers Console](https://console.developers.google.com/) et créez un nouveau projet.
2. Renseignez l’[écran de consentement OAuth](https://console.developers.google.com/apis/credentials/consent) en fournissant au moins une adresse courriel et un nom valides.
3. Cliquez sur [Identifiants](https://console.developers.google.com/apis/credentials) dans le tiroir de navigation à gauche.
4. Créez un nouvel identifiant en cliquant sur le bouton [Créer un identifiant](https://console.developers.google.com/apis/credentials/oauthclient) et en choisissant **OAuth client ID (ID client OAuth)**. Ensuite, choisissez **Web Application (Application Web)** et donnez-lui un nom comme « Serveur Auth0 Google-OAuth ». Complétez les **Authorized redirect URIs (URI de redirection autorisés)** en remplissant le champ avec votre URL de rappel, qui devrait ressembler à `https://{yourDomain}/login/callback.` Appuyez sur la touche ENTRÉE avant de quitter le champ, puis cliquez sur le bouton Créer. Notez les valeurs `CLIENT ID` et `CLIENT SECRET` car nous les utiliserons plus tard.
5. Créez un nouvel identifiant en cliquant sur le bouton [Créer un identifiant](https://console.developers.google.com/apis/credentials/oauthclient) et en choisissant **OAuth client ID (ID client OAuth)**. Sélectionnez ensuite **Android** et donnez-lui un nom comme « Auth0 Android Google-OAuth ». Récupérez le **SHA-1** du certificat que vous utilisez pour signer votre application et remplissez le premier champ avec ce SHA-1. Si vous avez besoin d’aide pour récupérer le SHA-1, consultez [cette](#certificate-fingerprints) section. Enfin, remplissez le dernier champ avec le **Package Name (nom de package)** de votre application Android, puis cliquez sur le bouton Créer. Notez la valeur de `CLIENT ID` car nous l’utiliserons plus tard.
1. Rendez-vous dans la [Google Developers Console](https://console.cloud.google.com) et créez un nouveau projet.
2. Renseignez l’[écran de consentement OAuth](https://console.cloud.google.com/apis/credentials/consent) en fournissant au moins une adresse courriel et un nom valides.
3. Cliquez sur [Identifiants](https://console.cloud.google.com/apis/credentials) dans le tiroir de navigation à gauche.
4. Créez un nouvel identifiant en cliquant sur le bouton [Créer un identifiant](https://console.cloud.google.com/apis/credentials/oauthclient) et en choisissant **OAuth client ID (ID client OAuth)**. Ensuite, choisissez **Web Application (Application Web)** et donnez-lui un nom comme « Serveur Auth0 Google-OAuth ». Complétez les **Authorized redirect URIs (URI de redirection autorisés)** en remplissant le champ avec votre URL de rappel, qui devrait ressembler à `https://{yourDomain}/login/callback.` Appuyez sur la touche ENTRÉE avant de quitter le champ, puis cliquez sur le bouton Créer. Notez les valeurs `CLIENT ID` et `CLIENT SECRET` car nous les utiliserons plus tard.
5. Créez un nouvel identifiant en cliquant sur le bouton [Créer un identifiant](https://console.cloud.google.com/apis/credentials/oauthclient) et en choisissant **OAuth client ID (ID client OAuth)**. Sélectionnez ensuite **Android** et donnez-lui un nom comme « Auth0 Android Google-OAuth ». Récupérez le **SHA-1** du certificat que vous utilisez pour signer votre application et remplissez le premier champ avec ce SHA-1. Si vous avez besoin d’aide pour récupérer le SHA-1, consultez [cette](#certificate-fingerprints) section. Enfin, remplissez le dernier champ avec le **Package Name (nom de package)** de votre application Android, puis cliquez sur le bouton Créer. Notez la valeur de `CLIENT ID` car nous l’utiliserons plus tard.

#### Auth0 Dashboard

1. Rendez-vous dans Auth0 Dashboard et cliquez sur [Connexions via réseau social](https://manage.auth0.com/#/connections/social).
2. Cliquez sur **Google** et une boîte de dialogue s’ouvrira.
3. Remplissez le champ « ID client » avec la valeur `CLIENT ID` obtenue à l’étape 4 de la section **Google Developers Console** ci-dessus.
4. Complétez le champ « Secret client » avec la valeur `CLIENT SECRET` obtenue à l’étape 4 de la section **Google Developers Console** ci-dessus.
5. Remplissez le champ « ID clients mobiles autorisés » avec la valeur `CLIENT ID` obtenu à l’étape 5 de la section **Google Developers Console** ci-dessus.
3. Remplissez le champ « ID client » avec la valeur `CLIENT ID` obtenue à l’étape 4 de la section **Google cloud Console** ci-dessus.
4. Complétez le champ « Secret client » avec la valeur `CLIENT SECRET` obtenue à l’étape 4 de la section **Google Cloud Console** ci-dessus.
5. Remplissez le champ « ID clients mobiles autorisés » avec la valeur `CLIENT ID` obtenu à l’étape 5 de la section **Google Cloud Console** ci-dessus.
6. Cliquez sur le bouton Enregistrer.
7. Rendez-vous dans le Auth0 Dashboard et cliquez sur [Applications](https://manage.auth0.com/#/applications). Si ce n’est pas déjà fait, vous devez d’abord créer une application, puis vous rendre sur la page de configuration de l’application.
8. En bas de la page, cliquez sur le lien « Afficher les paramètres avancés » et accédez à l’onglet « Paramètres de l’appareil ».
9. Dans la section Android, remplissez le champ **Nom de package** avec le nom de package de votre application. Enfin, remplissez le champ **Clés de hachage** avec le SHA-256 du certificat que vous utilisez pour signer votre application. Si vous avez besoin d’aide pour récupérer le SHA-256, consultez [cette](#certificate-fingerprints) section. Cliquez sur le bouton Enregistrer les modifications.

#### Application Android

1. Dans votre application Android, créez une nouvelle ressource de type chaîne dans le fichier `res/strings.xml`. Nommez-le `google_server_client_id` et donnez-lui comme valeur le `CLIENT_ID` obtenu à l’étape 5 de la configuration de la section de configuration de **Google Developers Console** ci-dessus.
1. Dans votre application Android, créez une nouvelle ressource de type chaîne dans le fichier `res/strings.xml`. Nommez-le `google_server_client_id` et donnez-lui comme valeur le `CLIENT_ID` obtenu à l’étape 5 de la configuration de la section de configuration de **Google Cloud Console** ci-dessus.
2. Ajoutez les métadonnées de la version de Google Play Services au fichier `AndroidManifest.xml`, à l’intérieur de la balise Application.

``` lines
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Auth0のメールにカスタムドメインを使用したい場合には、こ

## Google Workspace接続を構成する

Google Workspace接続でカスタムドメインを使用したい場合には、[<Tooltip data-tooltip-id="react-containers-DefinitionTooltip-0" href="/docs/ja-jp/glossary?term=oath2" tip="OAuth 2.0: 認可プロトコルとワークフローを定義する認可フレームワーク。" cta="用語集の表示">OAuth</Tooltip> Client Settings(OAuthクライアント設定)]の[Authorized Redirect URIs(認可されているリダイレクトURI)]リストを更新する必要があります。Google Developer Consoleで **[Credentials(資格情報)]** に移動し、使用しているOAuthクライアントをリストから選択すると、クライアントIDやシークレットなどのフィールドを含む設定ページが表示されます。 **[Authorized redirect URIs(認可されているリダイレクトURI)]** フィールドにURLを追加します。URLには`https://<YOUR-CUSTOM-DOMAIN>/login/callback`の形式でカスタムドメイン(`https://login.northwind.com/login/callback`など)を含めます。
Google Workspace接続でカスタムドメインを使用したい場合には、[<Tooltip data-tooltip-id="react-containers-DefinitionTooltip-0" href="/docs/ja-jp/glossary?term=oath2" tip="OAuth 2.0: 認可プロトコルとワークフローを定義する認可フレームワーク。" cta="用語集の表示">OAuth</Tooltip> Client Settings(OAuthクライアント設定)]の[Authorized Redirect URIs(認可されているリダイレクトURI)]リストを更新する必要があります。Google Cloud Consoleで **[Credentials(資格情報)]** に移動し、使用しているOAuthクライアントをリストから選択すると、クライアントIDやシークレットなどのフィールドを含む設定ページが表示されます。 **[Authorized redirect URIs(認可されているリダイレクトURI)]** フィールドにURLを追加します。URLには`https://<YOUR-CUSTOM-DOMAIN>/login/callback`の形式でカスタムドメイン(`https://login.northwind.com/login/callback`など)を含めます。

## API

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ Lock-Google[Maven Central](http://search.maven.org)と[JCenter](https://bintray.

#### Google開発者コンソール

1. [Google開発者コンソール](https://console.developers.google.com/)に移動して新規プロジェクトを作成します。
2. [OAuth同意画面](https://console.developers.google.com/apis/credentials/consent)に、最低でも有効な電子メールアドレスと名前を入力します。
3. 左側のナビゲーションドロワーで、[[Credentials(資格情報)]](https://console.developers.google.com/apis/credentials)をクリックします。
4. [[Create Credentials(資格情報を作成)]](https://console.developers.google.com/apis/credentials/oauthclient)ボタンをクリックし、**[OAuth client ID(OAuthクライアントID)]** を選択して新しい資格情報を作成します。次に、**[Web Application(ウェブアプリケーション)]** を選択し、「Auth0 Server Google-OAuth」などの名前を付けます。**[Authorized redirect URI(認可されたリダイレクトURI]** フィールドにCallback URL(`https://{yourDomain}/login/callback`など)を入力します。フィールドから離れる前に、必ずENTERキーを押し、[Create (作成)]ボタンをクリックします。`CLIENT ID(クライアントID)`と`CLIENT SECRET(クライアントシークレット)`は後で使うので、覚えておいてください。
5. [[Create Credentials(資格情報を作成)]](https://console.developers.google.com/apis/credentials/oauthclient)ボタンをクリックし、**[OAuth client ID(OAuthクライアントID)]** を選択して新しい資格情報を作成します。次に、[**Android**]を選択し、「Auth0 Android Google-OAuth」などの名前を付けます。アプリケーションに署名するために使う証明書の **SHA-1** を取得して、最初のフィールドにそれを入力します。SHA-1の取得に関してヘルプが必要な場合は [この](#certificate-fingerprints)セクションを参照してください。最後に、最後のフィールドにAndroidアプリケーションの **パッケージ名** を入力し、[Create(作成)]ボタンをクリックします。`CLIENT ID(クライアントID)`は後で使うので、覚えておいてください。
1. [Google開発者コンソール](https://console.cloud.google.com)に移動して新規プロジェクトを作成します。
2. [OAuth同意画面](https://console.cloud.google.com/apis/credentials/consent)に、最低でも有効な電子メールアドレスと名前を入力します。
3. 左側のナビゲーションドロワーで、[[Credentials(資格情報)]](https://console.cloud.google.com/apis/credentials)をクリックします。
4. [[Create Credentials(資格情報を作成)]](https://console.cloud.google.com/apis/credentials/oauthclient)ボタンをクリックし、**[OAuth client ID(OAuthクライアントID)]** を選択して新しい資格情報を作成します。次に、**[Web Application(ウェブアプリケーション)]** を選択し、「Auth0 Server Google-OAuth」などの名前を付けます。**[Authorized redirect URI(認可されたリダイレクトURI]** フィールドにCallback URL(`https://{yourDomain}/login/callback`など)を入力します。フィールドから離れる前に、必ずENTERキーを押し、[Create (作成)]ボタンをクリックします。`CLIENT ID(クライアントID)`と`CLIENT SECRET(クライアントシークレット)`は後で使うので、覚えておいてください。
5. [[Create Credentials(資格情報を作成)]](https://console.cloud.google.com/apis/credentials/oauthclient)ボタンをクリックし、**[OAuth client ID(OAuthクライアントID)]** を選択して新しい資格情報を作成します。次に、[**Android**]を選択し、「Auth0 Android Google-OAuth」などの名前を付けます。アプリケーションに署名するために使う証明書の **SHA-1** を取得して、最初のフィールドにそれを入力します。SHA-1の取得に関してヘルプが必要な場合は [この](#certificate-fingerprints)セクションを参照してください。最後に、最後のフィールドにAndroidアプリケーションの **パッケージ名** を入力し、[Create(作成)]ボタンをクリックします。`CLIENT ID(クライアントID)`は後で使うので、覚えておいてください。

#### Auth0 Dashboard

Expand Down
Loading