-
-
Notifications
You must be signed in to change notification settings - Fork 432
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
[18.0][MIG] auth_oauth_multi_token: Migration to 18.0 #743
base: 18.0
Are you sure you want to change the base?
[18.0][MIG] auth_oauth_multi_token: Migration to 18.0 #743
Conversation
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.
Currently translated at 100.0% (15 of 15 strings) Translation: server-auth-16.0/server-auth-16.0-auth_oauth_multi_token Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_oauth_multi_token/it/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good functional test, oidc aws cognito
@sbidoul could you review this PR and 17.0 one too? |
) | ||
# In version 18.0 AccessDenied exception is raising ValueError exception | ||
except ValueError as e: | ||
self.assertEqual(str(e), "Unknown token version") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change to the test looks suspicious to me. It probably does not test what it was meant to test anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not at all, in version 17.0
there is one single exception raised, the one you mean!
In version 18.0, the exception you mean is raising another exception which is the source one.
I handle it and then I trace the log message for the one you mean.
If you like to update the test case all right show me your opinion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could I suggest:
a8955ff
prevent attempt to create versus refuse. or did we want to change the expects to be a new user?
'Exception: Unknown token version'
is thrown in the https://github.com/odoo/odoo/blob/18.0/addons/auth_oauth/models/res_users.py#L111 I believe.
Based on PR 742 which is just improvement of PR 694
#694 => #742 [17.0][MIG]