10000 [ADD] general: How to allow users to sign in with their Google account · getodoochina/documentation-user@4b079e2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b079e2

Browse files
committed
[ADD] general: How to allow users to sign in with their Google account
1 parent 7f36557 commit 4b079e2

File tree

12 files changed

+58
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ General
88
:titlesonly:
99

1010
general/odoo_basics
11-
general/base_import
11+
general/base_import
12+
general/auth
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
================
2+
Authentification
3+
================
4+
5+
.. toctree::
6+
:titlesonly:
7+
8+
auth/google
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
=======================================================
2+
How to allow users to sign in with their Google account
3+
=======================================================
4+
5+
- Connect to your Google account and go to `https://console.developers.google.com/ <https://console.developers.google.com/>`_.
6+
7+
- Click on **Create Project** and enter the project name and other details.
8+
9+
.. image:: media/google01.png
10+
:align: center
11+
12+
.. image:: media/google02.png
13+
:align: center
14+
15+
- Click on **Use Google APIs**
16+
17+
.. image:: media/google03.png
18+
:align: center
19+
20+
- On the left side menu, select the sub menu **Credentials** (from **API Manager**) then select **OAuth consent screen**.
21+
22+
.. image:: media/google04.png
23+
:align: center
24+
25+
- Fill in your address, email and the product name (for example odoo) and then save.
26+
27+
.. image:: media/google05.png
28+
:align: center
29+
30+
- Then click on **Add Credentials** and select the second option (OAuth 2.0 Client ID).
31+
32+
.. image:: media/google06.png
33+
:align: center
34+
35+
.. image:: media/google07.png
10000
36+
:align: center
37+
38+
- Check that the application type is set on **Web Application**. Now configure the allowed pages on which you will be redirected.
39+
40+
- To achieve this, complete the field **Authorized redirect URIs**. Copy paste the following link in the box: http://mydomain.odoo.com/auth_oauth/signin. Then click on **Create**
41+
42+
.. image:: media/google08.png
43+
:align: center
44+
45+
.. image:: media/google09.png
46+
:align: center
47+
48+
- Once done, you receive two information (your Client ID and Client Secret). You have to insert your Client ID in the **General Settings**.