Setup SSO using Entra
Zuletzt aktualisiert:
03.03.2025
Abgeschlossen
Setup SSO with Entra (Azure Active Directory) faster than drinking a cup of coffee!
Microsoft Entra
1. Sign in to Entra Admin Center:
- Log in to the Microsoft Entra Admin Center with at least Cloud Application Administrator privileges
2. Add an Enterprise Application:
- Navigate to Identity > Applications > Enterprise applications > All applications
- Click on "New Application" and select the "Create you own application"
- Name it "Odoo"
- Set it to "Register an application to integrate with Microsoft Entra ID (App you're developing)"
- Set the redirect URI to web
- Enter
https://<odoo base url>/auth_oauth/signin - Click Register
3. Configure Single Sign-On:
- In the Manage section, select "Single sign-on"
- Check both:
- "Access Tokens"
- "ID Tokens"
- Click "Save"
- Go to "Overview"
- Open a new window or tab for Odoo
- Continue to the next column to for the Odoo steps
- Install the OAuth Module:
- Log in to your Odoo dashboard as an admin
- Go to the Apps menu and search for the OAuth module
- Install the module
- Configure OAuth Provider:
- Navigate to the Settings menu
- Under the OAuth section, click on "Create" to add a new provider
- Fill in the following details:
Provider name
Microsoft login
Client ID
<Application (client) ID> in Entra
Authorization URL
In Entra, go back to Application registrations and click endpoints; copy the OAuth 2.0 authorization endpoint (v2) and paste it into Odoo.
UserInfo
https://graph.microsoft.com/oidc/userinfo
Enable developer mode and go to Setttings > Technical > System Parameters.
Create a new parameter:
key = auth_oauth.authorization_header
value = 1
3. Inform Your Users:
- Go to the Odoo login page
- You'll see a new login option for Microsoft Login
- Since at this point both Odoo and Microsoft login are active, you should communicate to your existing users that they have to click Reset Password followed by Microsoft Login
- When all users are informed, turn off the Odoo login by unticking the Allow box in the Odoo authentication settings
Bewertung
0
0
Kommentieren ist für diesen Kurs nicht aktiviert.