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

Closed
wants to merge 47 commits into 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
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
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Nov 24, 2024
@sbidoul
Copy link
Member

sbidoul commented Nov 24, 2024

/ocabot migration auth_jwt

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Nov 24, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Nov 24, 2024
20 tasks
@sbidoul
Copy link
Member

sbidoul commented Nov 24, 2024

@MikeAelbrecht sorry I had lost track of this. Could you rebase, and get rid of the .deb file (it was added in f7e9643)?

Otherwise the migration looks good to me.

ryanc-me pushed a commit to ryanc-me/server-auth that referenced this pull request Nov 27, 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
@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Dec 1, 2024
adhoc-cicd-bot pushed a commit to adhoc-cicd/oca-server-auth that referenced this pull request Jan 18, 2025
* [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
@StefanRijnhart
Copy link
Member

Merged in #751. Thank you for your contribution!

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.