Skip to content

[12.0/14.0] auth_oidc: OAuth account linking #777

Description

@Lanhild

Is your feature request related to a problem?
When configuring an OIDC/OAuth provider in Odoo, I have to manually input the OAuth user's ID (sub) to the oauth_uid field on the corresponding res.users, even though the token mapping in the OAuth configuration is correct.

This happens with Keycloak, Authentik, etc.

Describe the solution you'd like
Being able to automatically link a user's OAuth account to it's corresponding account in Odoo.

Whether it is a button that allows the user to link their OAuth account, or a per-provider setting that allows automatic linking when the OAuth user's and Odoo user's emails correspond.

Describe alternatives you've considered
No viable alternative.

Additional context
Any clues? It'd be helpful if there are working examples where I don't have to set the oauth_uid myself.

Essentially, this issue's a bug as it doesn't allow proper usage of the module.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions