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 #751

Merged
merged 43 commits into from
Jan 18, 2025

Conversation

kobros-tech
Copy link

@kobros-tech kobros-tech commented Jan 16, 2025

cleaning up for migration
#657

@kobros-tech kobros-tech force-pushed the 17.0-mig-auth_jwt branch 2 times, most recently from eb0dbc2 to 0f36b23 Compare January 16, 2025 19:59
sbidoul and others added 28 commits January 16, 2025 23:10
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.
oca-ci and others added 10 commits January 16, 2025 23:10
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/
@kobros-tech
Copy link
Author

kobros-tech commented Jan 16, 2025

@sbidoul

I am learining how to respect log using rebase command :)

@lmignon
Copy link
Contributor

lmignon commented Jan 17, 2025

@kobros-tech The migration should be redone to avoid to add the pandoc-3.2.1-amd64.deb file into the git history. It has been added in 99863ac It's no more part of the commit history on the 16.0 branch.

@kobros-tech
Copy link
Author

@kobros-tech The migration should be redone to avoid to add the pandoc-3.2.1-amd64.deb file into the git history. It has been added in 99863ac It's no more part of the commit history on the 16.0 branch.

I don't understand, in the MIG PR stephan asked to remove .deb file and I removed it here.

I didn't catch up what you meant.

@kobros-tech
Copy link
Author

@lmignon

I understand now, the only commit is [MIG] I removed all commits since the one you mentioned, so pandoc.deb will not be there in the git log.

we will improve also the [MIG][18.0] commit with MR. Don @dnplkndll

@kobros-tech kobros-tech changed the title [17.0][FIX] auth_jwt: cleaning up for migration [17.0][MIG] auth_jwt: Migration to 17.0 Jan 17, 2025
Copy link
Contributor

@lmignon lmignon left a comment

Choose a reason for hiding this comment

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

Thank you for your work @kobros-tech The code LGTM now. Some commits could miss but I'll take care to sync the 16.0 and 17.0 branches in the next weeks so let's move forward.

@sbidoul
Copy link
Member

sbidoul commented Jan 18, 2025

I compared with v16. This looks good.

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 17.0-ocabot-merge-pr-751-by-sbidoul-bump-nobump, awaiting test results.

@sbidoul
Copy link
Member

sbidoul commented Jan 18, 2025

Thanks for the migration @kobros-tech !

@OCA-git-bot OCA-git-bot merged commit 13d21c6 into OCA:17.0 Jan 18, 2025
5 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 0a15bad. Thanks a lot for contributing to OCA. ❤️

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

Successfully merging this pull request may close these issues.