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

[16.0] [FIX] fastapi: Unflag save_session in routing info #442

Merged
merged 3 commits into from
Oct 1, 2024

Conversation

paradoxxxzero
Copy link
Contributor

@paradoxxxzero paradoxxxzero commented Jul 9, 2024

This is as much a PR as a question.

Is there any reason to not set the save_session to False and thus remove the session_id cookie?

FYI: @sebastienbeau

@OCA-git-bot
Copy link
Contributor

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

@lmignon
Copy link
Contributor

lmignon commented Jul 9, 2024

This is as much a PR as a question.

Is there any reason to not set the save_session to False and thus remove the session_id cookie?

by ignorance ...

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.

it makes sense

@sbidoul
Copy link
Member

sbidoul commented Jul 9, 2024

Does this have backward compatibility implications?

@paradoxxxzero
Copy link
Contributor Author

Not that I know of, the session should not be used in the api.

Copy link
Member

@flotho flotho left a comment

Choose a reason for hiding this comment

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

Make sense,
LGTM

@lmignon
Copy link
Contributor

lmignon commented Jul 10, 2024

We could make it configurable on the endpoint.

@sbidoul
Copy link
Member

sbidoul commented Jul 10, 2024

I think there are people who use regular Odoo users to authenticate REST APIs. There were PR to that end for base_rest in the past, IIRC. So if this influences such use cases (I'm not sure myself), it's probably necessary to make it configurable.

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@sebastienbeau
Copy link
Member

@sbidoul @lmignon I think we can start by just add this default value. Then in your custom you can still inherit the method "_get_routing_info" to change the value and also to change the "auth" params to use native odoo authentification

@lmignon
Copy link
Contributor

lmignon commented Oct 1, 2024

@sbidoul @lmignon I think we can start by just add this default value. Then in your custom you can still inherit the method "_get_routing_info" to change the value and also to change the "auth" params to use native odoo authentification

akretion#7 😏

@paradoxxxzero
Copy link
Contributor Author

Merged (and linted :p)

@lmignon
Copy link
Contributor

lmignon commented Oct 1, 2024

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-442-by-lmignon-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 8774d0b into OCA:16.0 Oct 1, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

6 participants