Skip to content

[18.0][FIX] auth_api_key: Use 401 for unauthorized user#806

Merged
OCA-git-bot merged 1 commit intoOCA:18.0from
PyTech-SRL:18.0-fix-server_auth_wrong_code
Jun 16, 2025
Merged

[18.0][FIX] auth_api_key: Use 401 for unauthorized user#806
OCA-git-bot merged 1 commit intoOCA:18.0from
PyTech-SRL:18.0-fix-server_auth_wrong_code

Conversation

@anusriNPS
Copy link
Contributor

Port forward fix from 16.0 #738

As per documentation, using 401 as status code seems valid for a user who is not able to be authorized. However, 403 is used for scenario where user is forbidden to access a resource. So, returning 401 instead of 403.

@anusriNPS anusriNPS force-pushed the 18.0-fix-server_auth_wrong_code branch from d22daf0 to e4a9157 Compare June 16, 2025 08:34
@anusriNPS
Copy link
Contributor Author

@LoisRForgeFlow , this port-forward for 18.0 is ready. Could you please help to merge it?

Copy link

@LoisRForgeFlow LoisRForgeFlow left a comment

Choose a reason for hiding this comment

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

Straight forward fwport

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 18.0-ocabot-merge-pr-806-by-LoisRForgeFlow-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit af1ede2 into OCA:18.0 Jun 16, 2025
8 of 9 checks passed
@OCA-git-bot
Copy link
Contributor

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

3 participants