Skip to content

[20.0][MIG] auth_oauth_multi_token: Migration to 20.0 - #1058

Open
chienandalu wants to merge 26 commits into
OCA:20.0from
moduon:20.0-mig-auth_oauth_multi_token
Open

chienandalu wants to merge 26 commits into
OCA:20.0from
moduon:20.0-mig-auth_oauth_multi_token

Conversation

@chienandalu

@chienandalu chienandalu commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

@moduon
MT-16738

please review @fcvalgar @EmilioPascual

@oca-cla-bot

oca-cla-bot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

CLA not signed

@OCA-git-bot OCA-git-bot added mod:auth_oauth_multi_token Module auth_oauth_multi_token series:20.0 labels Nov 3, 2026
@chienandalu
chienandalu marked this pull request as ready for review November 16, 2026 16:22
@fcvalgar

Copy link
Copy Markdown

Could you please check Runboat @chienandalu ? It's returning the following error: {"detail":"Not Found"}.

Thanks!

Florent de Labarre and others added 25 commits November 19, 2026 14:12
Allow multiple oauth login at the same time.
* cleanup, improve, docstrings
* add tests
Nothing special. Just making linters happy and splitting the readme.

@Tecnativa TT25619
Otherwise lookup is slow when there are many users.
Otherwise you can't delete a user.
This is cosmetic only, because this field is not used
when auth_oauth_multi_token is installed.
…d user

The user was looked up before calling super() and never again, so a
user created by signup, or linked to its oauth uid by another module,
during super() was refused with AccessDenied. Its master uuid was also
set to False before super(), which core then wrote on the user.

Look the user up again after super() when it was not found before, and
only replace the access token by the master uuid of an existing user.
@chienandalu
chienandalu force-pushed the 20.0-mig-auth_oauth_multi_token branch from 4425d09 to 8be4165 Compare November 19, 2026 13:12
@chienandalu

Copy link
Copy Markdown
Member Author

@fcvalgar you can check now

@fcvalgar fcvalgar left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on this migration! Thanks for your contribution.

The module has been functionally tested using a locally configured OAuth provider. The following tests were completed successfully:
Test 1: OK – OAuth authentication works correctly with the local provider.
Test 2: OK – Multiple simultaneous OAuth connections are supported for the same user.
Test 3: OK – The maximum number of simultaneous connections is respected.
Test 4: OK – Clearing OAuth tokens works correctly.

Everything works as expected in Odoo 20.0.

LGTM!

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

Labels

mod:auth_oauth_multi_token Module auth_oauth_multi_token series:20.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.