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

FastAPI Auth JWT: Fixes incorrect environment access #427

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

jakobfischer93
Copy link
Contributor

@jakobfischer93 jakobfischer93 commented Apr 3, 2024

It seems that the incorrect environment is used in the return of AuthJwtOdooEnv.
Instead of odoo_env (which ist no Environment, but a dependency, that only accepts a company_id), the actual Environment returned by the odoo_env dependency should be upgraded and returned.

Possible fix of #383 & #426.

closes #406

@OCA-git-bot
Copy link
Contributor

Hi @sbidoul,
some modules you are maintaining are being modified, check this out!

Copy link
Member

@sbidoul sbidoul left a comment

Choose a reason for hiding this comment

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

Looks good, thanks

@sbidoul
Copy link
Member

sbidoul commented Apr 5, 2024

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-427-by-sbidoul-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 20f8dd8 into OCA:16.0 Apr 5, 2024
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 9617984. 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.

fastapi_auth_jwt: Dependency auth_jwt_authenticated_odoo_env is broken
3 participants