> For the complete documentation index, see [llms.txt](https://docs.thewalletcrew.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thewalletcrew.io/guides-enrolment/fr/inscription/enrolment-form/social-sign-in/google-sign-in.md).

# Connexion Google

Configurez Google Sign-In (ID client OAuth 2.0) et connectez-le à la connexion sociale de The Wallet Crew.

Utilisez cette page pour activer le **Google** bouton dans un formulaire d’inscription. Lisez [Connexion sociale](https://docs.thewalletcrew.io/guides-enrolment/fr/inscription/enrolment-form/social-sign-in.md) d’abord pour le parcours client, le [hôtes pour autoriser](https://docs.thewalletcrew.io/guides-enrolment/fr/inscription/enrolment-form/social-sign-in.md#hosts-to-allow) et la manière de [activer un fournisseur sur le formulaire](https://docs.thewalletcrew.io/guides-enrolment/fr/inscription/enrolment-form/social-sign-in.md#enable-a-provider-on-the-form).

<div data-with-frame="true"><figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2FzfVT9pePqimlWGvzej2B%2FGoogle-Social-Sign-In.png?alt=media&#x26;token=f53cebf5-739a-42ee-8103-ed85247e6a6e" alt="Enrolment form with a Google sign-in button" width="375"><figcaption><p>Se connecter avec Google dans un exemple de formulaire d’inscription</p></figcaption></figure></div>

## Ce qui est configuré ici

* Un **ID client OAuth 2.0 Google** dans la marque **Google Cloud Console** projet (l’autorisation de créer des ID client OAuth 2.0 est requise).
* **Origines JavaScript autorisées** pour les hôtes du formulaire d’inscription.
* L’ID client stocké dans la console d’administration.

## Configurer Se connecter avec Google

{% stepper %}
{% step %}

### Ouvrir les identifiants

Ouvrir la console Google Cloud **Identifiants** page :

<p align="center"><a href="https://console.cloud.google.com/apis/credentials" class="button secondary" data-icon="chevrons-right">Page des identifiants Google</a></p>
{% endstep %}

{% step %}

### Créer un client OAuth pour une application Web

1. Cliquez sur **Créer des identifiants → ID client OAuth**.
2. Choisissez le type d’application : **Application Web**.
3. Définissez un nom. Exemple : `Connexion Wallet Crew`.
   {% endstep %}

{% step %}

### Configurer les origines

Ajoutez tous les hôtes listés dans [Hôtes à autoriser](https://docs.thewalletcrew.io/guides-enrolment/fr/inscription/enrolment-form/social-sign-in.md#hosts-to-allow) en tant que **origine JavaScript autorisée**.

Laissez **URI de redirection autorisés** vide.

<figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2Fx3PsBEB2MtC5fKa0XShX%2Fenroll-google-sign-google-oauth-client-settings.png?alt=media&#x26;token=92554f52-1803-48c7-b621-0ceb66c4cb19" alt="Google OAuth client settings with the authorized origins listed"><figcaption><p>Vérifiez que chaque origine est répertoriée et que la liste des URI de redirection est vide.</p></figcaption></figure>
{% endstep %}
{% endstepper %}

{% hint style="info" %}
Google Sign-In pour le web utilise le **ID client**. Il est sans danger de le coller dans la console d’administration.

Ne partagez aucun **secret client Google**. Il n’en faut pas pour ce flux.
{% endhint %}

## Configurer Google dans The Wallet Crew

1. Ouvrez **Paramètres → Inscription → Connexion sociale → Google** dans la console d’administration.

<p align="center"><a href="https://admin.thewalletcrew.io/tenant/~/settings/social-sign-in/google" class="button secondary" data-icon="chevrons-right">Connexion sociale → Google</a></p>

<div data-with-frame="true"><figure><img src="https://1734667767-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2Fgit-blob-894ea16c17769f89ebeca6f897d5dfb8677670c9%2Fsocial-sign-in-google-settings-single-frame.png?alt=media" alt="Google tab of the Social sign in settings in the admin console"><figcaption><p>Configuration de la connexion sociale Google de The Wallet Crew</p></figcaption></figure></div>

2. Collez le **ID client** de Google.
3. Enregistrez.

## Activer Google sur le formulaire d’inscription

Ajoutez le fournisseur au formulaire comme décrit dans [Activer un fournisseur sur le formulaire](https://docs.thewalletcrew.io/guides-enrolment/fr/inscription/enrolment-form/social-sign-in.md#enable-a-provider-on-the-form), avec ce bloc. Le type de fournisseur Google est `android` (nom historique) ; `google` n’est pas un type valide.

```yaml
signinOptions:
  providers:
    - type: android
      displayProps:
        isMobile : true
        isAndroid: true
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.thewalletcrew.io/guides-enrolment/fr/inscription/enrolment-form/social-sign-in/google-sign-in.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
