Skip to content

[17.0][FIX] auth_api_key: Use 401 for unauthorized user#805

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

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

Conversation

@anusriNPS
Copy link
Copy Markdown
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.

Copy link
Copy Markdown

@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
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 17.0-ocabot-merge-pr-805-by-LoisRForgeFlow-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 2a1a34a into OCA:17.0 Jun 16, 2025
6 of 7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

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