-
-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] add AzureAD code flow provider
- Loading branch information
Christopher Rogos
committed
Oct 9, 2023
1 parent
db19eab
commit d0c8951
Showing
6 changed files
with
63 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
<record id="provider_azuread_multi" model="auth.oauth.provider"> | ||
<field name="name">Azure AD Multitenant</field> | ||
<field name="flow">id_token_code</field> | ||
<field name="enabled">False</field> | ||
<field name="token_map">upn:user_id upn:email</field> | ||
<field | ||
name="auth_endpoint" | ||
>https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize</field> | ||
<field name="scope">profile openid</field> | ||
<field | ||
name="token_endpoint" | ||
>https://login.microsoftonline.com/organizations/oauth2/v2.0/token</field> | ||
<field | ||
name="jwks_uri" | ||
>https://login.microsoftonline.com/organizations/discovery/v2.0/keys</field> | ||
<field name="css_class">fa fa-fw fa-windows</field> | ||
<field name="body">Log in with Microsoft</field> | ||
</record> | ||
<record id="provider_azuread_single" model="auth.oauth.provider"> | ||
<field name="name">Azure AD Single Tenant</field> | ||
<field name="flow">id_token_code</field> | ||
<field name="enabled">False</field> | ||
<field name="token_map">upn:user_id upn:email</field> | ||
<field | ||
name="auth_endpoint" | ||
>https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/authorize</field> | ||
<field name="scope">profile openid</field> | ||
<field | ||
name="token_endpoint" | ||
>https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token</field> | ||
<field | ||
name="jwks_uri" | ||
>https://login.microsoftonline.com/{tenant_id}/discovery/v2.0/keys</field> | ||
<field name="css_class">fa fa-fw fa-windows</field> | ||
<field name="body">Log in with Microsoft</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+58.2 KB
auth_oidc/static/description/oauth-microsoft_azure-api_permissions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42.6 KB
auth_oidc/static/description/oauth-microsoft_azure-optional_claims.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.