Skip to content

Commit 7a2e651

Browse files
author
pabr-odoo
committed
[IMP] calendar: update authorization steps
closes #12163 Signed-off-by: Parish Bracha (pabr) <[email protected]>
1 parent e3e4cd6 commit 7a2e651

File tree

4 files changed

+30
-18
lines changed

4 files changed

+30
-18
lines changed

content/applications/productivity/calendar/google.rst

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ in, and store credentials. Click :guilabel:`New Project`.
2929
.. image:: google/new-api-project.png
3030
:alt: Create a new API project to store credentials.
3131

32-
.. tip::
33-
Give the API Project a clear name, like "Odoo Sync", so it can be easily identified.
32+
Give the API project a clear name, like `Odoo Sync`, so it can be identified. Then click the
33+
:guilabel:`Create` button.
3434

3535
Enable Google calendar API
3636
--------------------------
3737

3838
Now, click on :guilabel:`Enabled APIs and Services` in the left menu. Select :guilabel:`Enabled APIs
39-
and Services` again if the :guilabel:`Search bar` doesn't appear.
39+
and Services` again if the :guilabel:`Search bar` does not appear.
4040

4141
.. image:: google/enable-apis-services.png
4242
:alt: Enable APIs and Services on the API Project.
@@ -51,7 +51,7 @@ OAuth consent screen
5151
--------------------
5252

5353
Now that the API project has been created, OAuth should be configured. To do that, click on
54-
:guilabel:`OAuth consent` in the left menu and then select the :guilabel:`User Type`.
54+
:guilabel:`OAuth consent screen` in the left menu, then click the :guilabel:`Get started` button.
5555

5656
.. warning::
5757
*Personal* Gmail Accounts are only allowed to be **External** User Type, which means Google may
@@ -61,26 +61,38 @@ Now that the API project has been created, OAuth should be configured. To do tha
6161
Note, as well, that while the API connection is in the *External* testing mode, then no approval
6262
is necessary from Google. User limits in this testing mode is set to 100 users.
6363

64-
In the second step, :guilabel:`OAuth Consent Screen`, type `Odoo` in the :guilabel:`App name` field,
65-
select the email address for the :guilabel:`User support email` field, and type the email address
66-
for the :guilabel:`Developer contact information` section. Then, click :guilabel:`Save and
67-
Continue`.
64+
Follow the proceeding steps, in order:
65+
66+
#. In :guilabel:`App Information`, type `Odoo` in the :guilabel:`App name` field, then enter the
67+
email address for the :guilabel:`User support email` field and click the :guilabel:`Next` button.
68+
#. In :guilabel:`Audience`, select :guilabel:`External`, then click the :guilabel:`Next` button.
69+
#. In :guilabel:`Contact Information`, enter the email again, then click the :guilabel:`Next`
70+
button.
71+
#. In :guilabel:`Finish`, tick the checkbox to agree to :guilabel:`Google API Services: User
72+
Policy.` For the last step, click the :guilabel:`Create` button.
6873

69-
Skip the third step, :menuselection:`Scopes`, by clicking :guilabel:`Save and Continue`.
74+
Authorized domain setup
75+
-----------------------
7076

71-
Next, if continuing in testing mode (External), add the email addresses being configured under the
72-
:guilabel:`Test users` step, by clicking on :guilabel:`Add Users`, and then the :guilabel:`Save and
73-
Continue` button. A summary of the app registration appears.
77+
Next, any domains set to appear on the consent screen or in an OAuth client's configuration must be
78+
pre-registered. To do so, navigate to :guilabel:`Branding` in the left menu. In the
79+
:guilabel:`Authorized domains` section, click the :guilabel:`Add domain` button to create a field to
80+
enter an authorized domain. Enter a domain, such as `odoo.com`, then click the :guilabel:`Save`
81+
button at the bottom of the page.
7482

75-
Finally, scroll to the bottom, and click on :guilabel:`Back to Dashboard`.
83+
Test users
84+
----------
7685

77-
Now, the OAuth consent has been configured, and it's time to create credentials.
86+
To give users the ability to sync with personal Gmail accounts, they must be set as a test user.
87+
Setup test users by going to :guilabel:`Audience` in the left-side menu and clicking the
88+
:guilabel:`Add users` button in the :guilabel:`Test users` section. Enter any desired user emails,
89+
and click the :guilabel:`Save` button.
7890

7991
Create credentials
8092
------------------
8193

8294
The *Client ID* and the *Client Secret* are both needed to connect Google Calendar to Odoo. This is
83-
the last step in the Google console. Begin by clicking :guilabel:`Credentials` in the left menu.
95+
the last step in the Google console. Begin by clicking :guilabel:`Clients` in the left menu.
8496
Then, click :guilabel:`Create Credentials`, and select :guilabel:`OAuth client ID`, Google will open
8597
a guide to create credentials.
8698

@@ -96,7 +108,7 @@ Under :menuselection:`Create OAuth Client ID`, select :guilabel:`Website applica
96108
.. image:: google/uri.png
97109
:alt: Add the authorized JavaScript origins and the authorized redirect URIs.
98110

99-
A :guilabel:`Client ID` and :guilabel:`Client Secret` will appear, copy these to a notepad.
111+
A :guilabel:`Client ID` and :guilabel:`Client Secret` will appear, save these somewhere safe.
100112

101113
Setup in Odoo
102114
=============
@@ -129,8 +141,8 @@ button to sync Google Calendar with Odoo.
129141
.. note::
130142
When syncing Google Calendar with Odoo for the first time, the page will redirect to the Google
131143
Account. From there, select the :guilabel:`Email Account` that should have access, then select
132-
:guilabel:`Continue` (should the app be unverifed), and finally select :guilabel:`Continue` (to
133-
give permission for the transfer of data)`.
144+
:guilabel:`Continue` (should the app be unverified), and finally select :guilabel:`Continue` (to
145+
give permission for the transfer of data).
134146

135147
.. image:: google/trust-odoo.png
136148
:alt: Give Odoo permission to access Google Calendar.
-1.65 KB
Loading
-3.16 KB
Loading
-3.58 KB
Loading

0 commit comments

Comments
 (0)