OCA / server-auth

https://odoo-community.org/psc-teams/tools-30
GNU Affero General Public License v3.0
146 stars 399 forks source link

[14.0] [FIX] auth_api_key: return 401 instead of 403 #629

Open renda-dev opened 4 months ago

renda-dev commented 4 months ago

AccessDenied() has status code 403 while, according to the docs the status code 401 suits better in this case so I would like to propose to use werkzeug.exceptions.Unauthorized instead, which returns 401.

github-actions[bot] commented 15 hours ago

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. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.