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

[17.0][MIG] auth_jwt: Migration to 17.0 #657

Open
wants to merge 47 commits into
base: 17.0
Choose a base branch
from

Conversation

MikeAelbrecht
Copy link

Changed the manifest to version 17.0.1.0.0.
Updated the XML file to be supported by Odoo version 17.0.

sbidoul and others added 30 commits May 30, 2024 08:30
Because it allows validating with a list of audiences.
Make it work with pyjwt.
This method is useful for public endpoints that need
to work for anonymous user, but can be enhanced when
an authenticated user is know.

A typical use case is a "add to cart" enpoint that can
work for anonymous users, but can be enhanced by
binding the cart to a known customer when the authenticated
user is known.
The unit tests were broken for non-functional reasons (interaction with
the mock) and is easier to implement as integration test.
Distinguish errors that lead to a 401
from internal configuration errors.
Extract _parse_bearer_authorization function for easier reuse by fastapi_auth_jwt
sbidoul and others added 17 commits May 30, 2024 08:30
Currently translated at 100.0% (64 of 64 strings)

Translation: server-auth-16.0/server-auth-16.0-auth_jwt
Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_jwt/es/
Currently translated at 89.0% (57 of 64 strings)

Translation: server-auth-16.0/server-auth-16.0-auth_jwt
Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_jwt/it/
Currently translated at 100.0% (64 of 64 strings)

Translation: server-auth-16.0/server-auth-16.0-auth_jwt
Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_jwt/it/
Currently translated at 100.0% (64 of 64 strings)

Translation: server-auth-16.0/server-auth-16.0-auth_jwt
Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_jwt/it/
kwoychesko pushed a commit to bpmi/server-auth that referenced this pull request Jun 5, 2024
* [MIG] migrate users_ldap_populate to 10.0

Changes include:
 - move views to views folder
 - move models to models folder
 - in views rename openerp to odoo
 - __openerp__.py to __manifest__.py

* [FIX] Add read me to module users_ldap_populate

* [FIX] users_ldap_populate: cleanup manifest file

Cleanup of the author list

* [FIX] users_ldap_populate: More modern copyright in .py files

* [FIX] users_ldap_populate: Update read me

Fixes include:
 - more human module name
 - Fix web links
self.assertEqual(
str(composite_error.exception),
"401 Unauthorized: "
+ "Multiple errors occurred during JWT chain validation:\n"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
+ "Multiple errors occurred during JWT chain validation:\n"
"Multiple errors occurred during JWT chain validation:\n"

Was this + added automatically by ruff ?

Copy link
Member

Choose a reason for hiding this comment

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

Yikes, what's this pandoc-3.2.1-amd64.deb doing here?

Copy link
Member

Choose a reason for hiding this comment

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

it already landed in the 17.0 branch! https://github.com/OCA/server-auth/tree/17.0 Here was the culprit #641

ryanc-me pushed a commit to ryanc-me/server-auth that referenced this pull request Jul 30, 2024
* [MIG] migrate users_ldap_populate to 10.0

Changes include:
 - move views to views folder
 - move models to models folder
 - in views rename openerp to odoo
 - __openerp__.py to __manifest__.py

* [FIX] Add read me to module users_ldap_populate

* [FIX] users_ldap_populate: cleanup manifest file

Cleanup of the author list

* [FIX] users_ldap_populate: More modern copyright in .py files

* [FIX] users_ldap_populate: Update read me

Fixes include:
 - more human module name
 - Fix web links
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.