Skip to content

Commit 7babf06

Browse files
committed
[IMP] Misc Oauth Azure Clarification
closes #5442 X-original-commit: b41d69a Signed-off-by: Zachary Straub (zst) <[email protected]>
1 parent 8b1875d commit 7babf06

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

content/applications/general/auth/azure.rst

+10-11
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ registration` from the drop-down menu. On the :guilabel:`Register an application
5959
:guilabel:`Supported account types` section select the option for :guilabel:`Accounts in this
6060
organizational directory only (Default Directory only - Single tenant)`.
6161

62+
.. warning::
63+
The :guilabel:`Supported account types` can vary by Microsoft account type and end use of the
64+
OAuth. For example: Is the login meant for internal users within one organization or is it meant
65+
for customer portal access? The above configuration is used for internal users in an
66+
organization.
67+
68+
Choose :guilabel:`Personal Microsoft accounts only` if the target audience is meant for portal
69+
users. Choose :guilabel:`Accounts in this organizational directory only (Default Directory only -
70+
Single tenant)` if the target audience is company users.
71+
6272
Under the :guilabel:`Redirect URL` section, select :guilabel:`Web` as the platform, and then input
6373
`https://<odoo base url>/auth_oauth/signin` in the :guilabel:`URL` field. The Odoo base :abbr:`URL
6474
(Uniform Resource Locator)` is the canonical domain at which your Odoo instance can be reached (e.g.
@@ -97,17 +107,6 @@ After finishing this step, click on :guilabel:`Endpoints` on the top menu and cl
97107
next to :guilabel:`OAuth 2.0 authorization endpoint (v2)` field. Paste this value in the clipboard /
98108
notepad.
99109

100-
The value should equal `https://login.microsoftonline.com/<directory_id>/oauth2/v2.0/authorize`.
101-
Replace the `<directory_id>` with the :guilabel:`Directory (tenant) ID` under the
102-
:guilabel:`Essentials` section of the *Overview* page if it is not already present in the :abbr:`URL
103-
(uniform resource locator)`.
104-
105-
.. example::
106-
Should the :guilabel:`Directory (tenant) ID` be equal to `6729e9df-afbb-4522-a876-f1408d416396`
107-
then the new value of the :guilabel:`OAuth 2.0 authorization endpoint (v2)` :abbr:`URL (Uniform
108-
Resource Locator)` should be:
109-
`https://login.microsoftonline.com/6729e9df-afbb-4522-a876-f1408d416396/oauth2/v2.0/authorize`.
110-
111110
.. image:: azure/overview-azure-app.png
112111
:align: center
113112
:alt: Application ID and OAuth 2.0 authorization endpoint (v2) credentials.

0 commit comments

Comments
 (0)