diff --git a/general.rst b/general.rst index 7fadd6470..50e494663 100644 --- a/general.rst +++ b/general.rst @@ -8,4 +8,5 @@ General :titlesonly: general/odoo_basics - general/base_import \ No newline at end of file + general/base_import + general/auth \ No newline at end of file diff --git a/general/auth.rst b/general/auth.rst new file mode 100644 index 000000000..feba603a8 --- /dev/null +++ b/general/auth.rst @@ -0,0 +1,8 @@ +================ +Authentification +================ + +.. toctree:: + :titlesonly: + + auth/google \ No newline at end of file diff --git a/general/auth/google.rst b/general/auth/google.rst new file mode 100644 index 000000000..c072742b0 --- /dev/null +++ b/general/auth/google.rst @@ -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/ `_. + +- 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**. diff --git a/general/auth/media/google01.png b/general/auth/media/google01.png new file mode 100644 index 000000000..e566bd57e Binary files /dev/null and b/general/auth/media/google01.png differ diff --git a/general/auth/media/google02.png b/general/auth/media/google02.png new file mode 100644 index 000000000..d8efa8a90 Binary files /dev/null and b/general/auth/media/google02.png differ diff --git a/general/auth/media/google03.png b/general/auth/media/google03.png new file mode 100644 index 000000000..e22da632c Binary files /dev/null and b/general/auth/media/google03.png differ diff --git a/general/auth/media/google04.png b/general/auth/media/google04.png new file mode 100644 index 000000000..9b53656af Binary files /dev/null and b/general/auth/media/google04.png differ diff --git a/general/auth/media/google05.png b/general/auth/media/google05.png new file mode 100644 index 000000000..86010d2c1 Binary files /dev/null and b/general/auth/media/google05.png differ diff --git a/general/auth/media/google06.png b/general/auth/media/google06.png new file mode 100644 index 000000000..bf9aecb5a Binary files /dev/null and b/general/auth/media/google06.png differ diff --git a/general/auth/media/google07.png b/general/auth/media/google07.png new file mode 100644 index 000000000..064b81a97 Binary files /dev/null and b/general/auth/media/google07.png differ diff --git a/general/auth/media/google08.png b/general/auth/media/google08.png new file mode 100644 index 000000000..b1ec01739 Binary files /dev/null and b/general/auth/media/google08.png differ diff --git a/general/auth/media/google09.png b/general/auth/media/google09.png new file mode 100644 index 000000000..72053a474 Binary files /dev/null and b/general/auth/media/google09.png differ