[ADD] general: How to allow users to sign in with their Google account
@ -8,4 +8,5 @@ General
|
||||
:titlesonly:
|
||||
|
||||
general/odoo_basics
|
||||
general/base_import
|
||||
general/base_import
|
||||
general/auth
|
8
general/auth.rst
Normal file
@ -0,0 +1,8 @@
|
||||
================
|
||||
Authentification
|
||||
================
|
||||
|
||||
.. toctree::
|
||||
:titlesonly:
|
||||
|
||||
auth/google
|
48
general/auth/google.rst
Normal file
@ -0,0 +1,48 @@
|
||||
=======================================================
|
||||
How to allow users to sign in with their Google account
|
||||
=======================================================
|
||||
|
||||
- Connect to your Google account and go to `https://console.developers.google.com/ <https://console.developers.google.com/>`_.
|
||||
|
||||
- Click on **Create Project** and enter the project name and other details.
|
||||
|
||||
.. image:: media/google01.png
|
||||
:align: center
|
||||
|
||||
.. image:: media/google02.png
|
||||
:align: center
|
||||
|
||||
- Click on **Use Google APIs**
|
||||
|
||||
.. image:: media/google03.png
|
||||
:align: center
|
||||
|
||||
- On the left side menu, select the sub menu **Credentials** (from **API Manager**) then select **OAuth consent screen**.
|
||||
|
||||
.. image:: media/google04.png
|
||||
:align: center
|
||||
|
||||
- Fill in your address, email and the product name (for example odoo) and then save.
|
||||
|
||||
.. image:: media/google05.png
|
||||
:align: center
|
||||
|
||||
- Then click on **Add Credentials** and select the second option (OAuth 2.0 Client ID).
|
||||
|
||||
.. image:: media/google06.png
|
||||
:align: center
|
||||
|
||||
.. image:: media/google07.png
|
||||
:align: center
|
||||
|
||||
- Check that the application type is set on **Web Application**. Now configure the allowed pages on which you will be redirected.
|
||||
|
||||
- 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**
|
||||
|
||||
.. image:: media/google08.png
|
||||
:align: center
|
||||
|
||||
.. image:: media/google09.png
|
||||
:align: center
|
||||
|
||||
- Once done, you receive two information (your Client ID and Client Secret). You have to insert your Client ID in the **General Settings**.
|
BIN
general/auth/media/google01.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
general/auth/media/google02.png
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
general/auth/media/google03.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
general/auth/media/google04.png
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
general/auth/media/google05.png
Normal file
After Width: | Height: | Size: 9.8 KiB |
BIN
general/auth/media/google06.png
Normal file
After Width: | Height: | Size: 7.9 KiB |
BIN
general/auth/media/google07.png
Normal file
After Width: | Height: | Size: 9.5 KiB |
BIN
general/auth/media/google08.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
general/auth/media/google09.png
Normal file
After Width: | Height: | Size: 8.9 KiB |