[16.0][FIX] auth_api_key: Use 401 for unauthorized user#738
[16.0][FIX] auth_api_key: Use 401 for unauthorized user#738OCA-git-bot merged 1 commit intoOCA:16.0from
Conversation
HekkiMelody
left a comment
There was a problem hiding this comment.
This is the same change as #629 , I think it makes sense here as it did there.
LGTM
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
|
@OCA/tools-maintainers Hello, this is a tiny fix to be more compliant with expectations of a REST architecture, we've been using it in production for a few months now, can it be merged? Thanks |
|
There is no declared maintainer of the module so I'm merging... /ocabot merge patch |
|
What a great day to merge this nice PR. Let's do it! |
|
Thank you @LoisRForgeFlow ! |
|
Congratulations, your PR was merged at cfb1526. Thanks a lot for contributing to OCA. ❤️ |
|
@aleuffre no problem! Could you take care of fwporting the fix to 17 and 18? ping me on the PR and we can quickly merge |
|
@anusriNPS @aleuffre thanks for your contrib! |
You're right, I missed it when reviewing, apologies |
Sure, will take care to align with Odoo convention in upcoming commits. |
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.