Skip to content

Odoo Single Sign-On

Overview

This article describes how to configure OAuth implicit mode authentication integration between BambooCloud IDaaS and Odoo (V10 and above).

Authentication Configuration

BambooCloud IDaaS Configuration

  1. Add the Odoo pre-integrated application.

  2. Configure authentication parameters. Enable simplified authorization mode. The callback address is http(s)://odoo-domain/auth_oauth/signin.

  3. Enter the application details, Authentication Configuration, edit the mapping configuration, and modify the id mapping.

    TIP

    Here it is set to the user email attribute, which can be flexibly configured according to actual needs. This setting is used to associate with Odoo users.

  4. Enter the application details, Authorization Management > Application Account, click the Add Account button, and select the authorized user.

  5. Obtain the application ClientId, which is needed for the Odoo configuration below.

Odoo Configuration

  1. Log in to the Odoo backend as an administrator and activate developer mode.

  2. Go to General Settings and enable external authentication.

  3. Go to Users > OAuth Providers and create a new provider.

    ParameterDescription
    Provider NameCustom, such as BambooCloud IDaaS
    Client IDApplication ClientId on BambooCloud IDaaS
    AllowedCheck
    BodyLogin button name, such as BambooCloud IDaaS
    Authentication URLhttps://BambooCloudIDaaS-tenant-domain.bccastle.com/api/v1/oauth/authorize
    Scopeget_user_info
    Validation URLhttps://BambooCloudIDaaS-tenant-domain.bccastle.com/api/v1/oauth/get_user_info
    Data URLEmpty
  4. Enter the user management interface, select a user to edit.

    • OAuth Provider: Select the provider added above

    • OAuth User ID: Fill in the value corresponding to the id mapping modified in the BambooCloud IDaaS application authentication configuration, such as email.

Login Verification

Scenario 1:

Access Odoo, select BambooCloud IDaaS login, and you will be redirected to the BambooCloud IDaaS authentication interface. Enter the username and password. After successful authentication, enter Odoo.

Scenario 2:

Access the BambooCloud IDaaS User Center and click the Odoo logo to enter Odoo.

DANGER

This scenario requires additional configuration adjustments.

  1. First, on the Odoo login interface, hover the mouse over the BambooCloud IDaaS login button, right-click and copy the link address.

  2. Enter the BambooCloud IDaaS Enterprise Center, Odoo application details - Login Configuration, Website Application, edit the Mount URL, replace it with the link address copied above, and save.

BambooCloud IDaaS Open Platform