Update Google Calendar's scenario 2 instructions (#37549)

This commit is contained in:
Stuart McCroden 2025-04-14 15:10:24 -05:00 committed by GitHub
parent 942198773c
commit 593f3b423d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,29 +26,29 @@ This section explains how to generate a client ID and client secret on
3. **Enable** the {{ api }}. 3. **Enable** the {{ api }}.
4. Navigate to **APIs & Services** (left sidebar) > [Credentials](https://console.cloud.google.com/apis/credentials). 4. Navigate to **APIs & Services** (left sidebar) > [Credentials](https://console.cloud.google.com/apis/credentials).
5. In the left sidebar, select **OAuth consent screen**. 5. In the left sidebar, select **OAuth consent screen**.
- Select **External** and **Create**. 6. It will take you to the Overview page and ask for **Project Configuration**:
- Set the **App name** (the name of the application asking for consent) to anything you want, e.g., *Home Assistant*. - Complete the App Information:
6. You then need to select a **Support email**. - Set the **App name** (the name of the application asking for consent) to anything you want, for example, *Home Assistant*.
- From the dropdown menu, select your email address. - For a **Support email**, choose your email address from the dropdown menu.
7. Under **Developer contact information**, enter your email address (the same as above is fine). - Click **Next**.
8. Scroll to the bottom and select **Save and continue**. - For Audience, select **External** then click **Next**.
- You don't have to fill out anything else here. Adding other information to this page (like an app logo) may trigger an additional review process from Google and delay setup by days. - Under Contact Information, enter your email address (the same as above is fine). Click **Next**.
9. You will then be automatically taken to the **Scopes** page. - Read the policy and check the box if you agree. Click **Continue**.
- You do not need to add any scopes here. Select **Save and continue** to move to the **Test users** page. - Click **Create**.
- You do not need to add anything to the **Test users** page. Select **Save and continue**, which will take you to the **Summary** page. 7. In the left sidebar, select **Audience**:
- Select **Back to dashboard**. - Under **Publishing status > Testing**, select **Publish app**.
10. Select **OAuth consent screen** again and under **Publishing status**, select **Publish app**. > Otherwise, your credentials will expire every 7 days.
- Otherwise your credentials will expire every 7 days. 8. In the left sidebar, select **Clients**:
11. Make sure **Publishing status** is set to **In production**. - Click **+ Create Client**.
12. In the left sidebar, select **Credentials**, then select **Create credentials** (at the top of the screen), then select **OAuth client ID**. - For Application type, choose **Web Application** and give this client ID a name (like "Home Assistant Client").
13. Set the **Application type** to **Web application** and give this credential set a name (like "Home Assistant Credentials"). - Add `https://my.home-assistant.io/redirect/oauth` to **Authorized redirect URIs** then select **Create**.
14. Add `https://my.home-assistant.io/redirect/oauth` to **Authorized redirect URIs** then select **Create**. > **Note**: This is not a placeholder. It is the URI that must be used.
- This is not a placeholder. It is the URI that must be used. - Click **Create**.
15. You will then be presented with a pop-up saying **OAuth client created**, showing **Your client ID** and **Your client secret**. 9. Find the client you just created. Under the Actions column, choose **Download OAuth client** (download icon), which will show you the **Client ID** and **Client Secret**.
- Make a note of these (for example, copy and paste them into a text editor), as you will need them shortly. - Make a note of these (for example, copy and paste them into a text editor), as you will need them shortly.
- Once you have noted these strings, select **OK**. - Once you have noted these strings, select **Close**.
- If you need to find these credentials again at any point, then navigate to **APIs & Services** > **Credentials**, and you will see **Home Assistant Credentials** (or whatever you named them in the previous step) under **OAuth 2.0 Client IDs**. - Congratulations! You are now the keeper of a client secret. Guard it in your treasure box. In most cases, your new credentials will be active within a few minutes. However, Google states that activation may take up to five hours in some circumstances.
- To view both the **Client ID** and **Client secret**, select the pencil icon. This will take you to the settings page for these credentials, and the information will be on the right-hand side of the page. > If you need to find these credentials again at any point, then navigate to **APIs & Services** > **Credentials**, and you will see **Home Assistant Credentials** (or whatever you named them in the previous step) under **OAuth 2.0 Client IDs**.
16. Congratulations! You are now the keeper of a client secret. Guard it in your treasure box. In most cases your new credentials will be active within a few moments. However, Google states that activation may take up to five hours in some circumstances. >
> To view the **Client ID** and **Client Secret**, click the **Download OAuth client** (download icon) under the Actions column.
{% enddetails %} {% enddetails %}