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.
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 theoauth_uidfield on the correspondingres.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_uidmyself.Essentially, this issue's a bug as it doesn't allow proper usage of the module.