Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][IMP] webservice: add support for oauth2 authentication #41

Open
wants to merge 4 commits into
base: 15.0
Choose a base branch
from

Commits on May 16, 2024

  1. [IMP] webservice: add support for oauth2

    Allow using oauth2 with Backend Application Flow / Client Credentials
    Grant.
    gurneyalex committed May 16, 2024
    Configuration menu
    Copy the full SHA
    21c7a94 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    918b954 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. [FIX] webservice: WARNING message in logs

    The use of a compute method on `oauth2_flow` when this field is touched by
    the server environment mixin causes it to be defined twice as computed,
    with differents settings, and this ultimately causes a warning message
    in the logs:
    
    ```
    WARNING odoo odoo.modules.registry: webservice.backend: inconsistent 'compute_sudo' for computed fields: protocol, url, auth_type, username, password, api_key, api_key_header, oauth2_flow, oauth2_clientid, oauth2_client_secret, oauth2_token_url, oauth2_authorization_url, oauth2_audience, oauth2_scope, content_type
    ```
    
    We fix this by using an old fashioned onchange declaration on the
    `auth_type` field.
    gurneyalex committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    670f43c View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

  1. Configuration menu
    Copy the full SHA
    2ef9c24 View commit details
    Browse the repository at this point in the history