Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
165 commits
Select commit Hold shift + click to select a range
42b0833
[9.0][MIG][auth_signup_verify_email] Migration. (#436)
yajo May 31, 2016
84a62a1
[MIG][10] auth_signup_verify_email
sharkende Jan 27, 2017
6c28a54
OCA Transbot updated translations from Transifex
oca-transbot Jun 12, 2016
f799750
[MIG][11] auth_signup_verify_email
simahawk Jan 22, 2018
75a5e54
[FIX+REF] auth_signup_verify_email: Fix tests + Skip mail send in tes…
yajo Jan 26, 2018
6333f09
[FIX] auth_signup_verify_email: Improve signup error messages
zaoral Dec 4, 2018
110eb89
[MIG] auth_signup_verify_email: Migration to 12.0
Tardo Jun 4, 2019
d19fe08
Translated using Weblate (Portuguese (Brazil))
Sep 3, 2019
beeed3f
Translated using Weblate (Croatian)
badbole Nov 13, 2019
ae784b8
[IMP] auth_signup_verify_email: Remove hack
Tardo Nov 21, 2019
eefa9e1
[FIX] auth_signup_verify_email: make tests compatible with website
Feb 20, 2020
b9c6c91
[IMP] auth_signup_verify_email: black, isort, prettier
em230418 May 19, 2020
b5da86b
[MIG] auth_signup_verify_email: Migration to 13.0
em230418 May 19, 2020
1a6d5c0
Added translation using Weblate (Arabic)
RachidAlassir Jan 6, 2021
b7ca95c
[IMP] auth_signup_verify_email: black, isort, prettier
em230418 Oct 6, 2021
1d449f0
[MIG] auth_signup_verify_email: Migration to 14.0
em230418 Apr 29, 2021
f958aa6
[FIX] auth_signup_verify_email: Use real email address for tests
pedrobaeza Jun 12, 2022
8482ba7
[MIG] auth_signup_verify_email: Migration to 15.0
em230418 Mar 30, 2022
a76b255
[IMP] auth_signup_verify_email: pre-commit stuff
Nov 25, 2022
02fa2fd
[MIG] auth_signup_verify_email: Migration to 16.0
Nov 25, 2022
4520211
Translated using Weblate (Spanish)
Ivorra78 Aug 25, 2023
70ea440
[IMP] auth_signup_verify_email: pre-commit execution
augusto-weiss Dec 18, 2023
3397710
[MIG] auth_signup_verify_email: Migration to 17.0
augusto-weiss Dec 18, 2023
cf67697
[UPD] Update auth_signup_verify_email.pot
Aug 23, 2024
f8f2c16
[BOT] post-merge updates
OCA-git-bot Aug 23, 2024
9fcba73
Update translation files
weblate Aug 23, 2024
d18275a
Translated using Weblate (Italian)
mymage Aug 26, 2024
d0cf4ef
Added translation using Weblate (Finnish)
jarmokortetjarvi Sep 30, 2024
3ff4344
Translated using Weblate (Finnish)
jarmokortetjarvi Sep 30, 2024
bfcd6f6
[IMP] auth_signup_verify_email: pre-commit execution
jr2-adhoc Nov 14, 2024
b78ef1f
[MIG] auth_signup_verify_email: Migration to 18.0
jr2-adhoc Nov 14, 2024
47e0179
[9.0][ADD] Password Security Settings (#531)
lasley Sep 29, 2016
10c8a89
[MIG] Make modules uninstallable
pedrobaeza Oct 6, 2016
fb39e68
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
11d324b
[MIG] password_security: Migrate to v10
lasley Oct 20, 2016
70b8055
[FIX] password_security: Validate admin pass
lasley Dec 23, 2016
4c4e956
[FIX] password_security: Fix history rule
lasley Jan 9, 2017
2fcd50c
Improve UX password_match_message()
astirpe May 5, 2017
35edefb
[FIX] password_security: Fix password stored and token to reset passw…
moylop260 Jun 20, 2017
bae0dab
[FIX] password_security: Force password reset
obulkin Sep 18, 2017
e79c3d9
[MIG]password security
smurf-U Oct 11, 2017
2a346f6
[IMP]change request
smurf-U Oct 27, 2017
edb16be
[IMP]Underscore is a special character #1077
StefanRijnhart Nov 29, 2017
814d192
[FIX] password_security: Default last write date #1084
lasley Dec 4, 2017
5b359b9
[FIX] UTF-8 coding is not necessary
max3903 Mar 28, 2018
ec7f5de
[MIG] auth_totp_password_security: Migration to 11.0
MiquelRForgeFlow May 14, 2018
92ae059
[I18N] password_security: Translate to Spanish all translatable terms
luisg123v Jun 18, 2018
61cceed
[FIX] password_security: Error 500 when login with bad password (#27)
yajo Jun 19, 2018
19689e0
[FIX] password_security: Allow mini-admin to create users (#31)
yajo Jun 22, 2018
5a1c928
[FIX] password_security: Make tests pass if website is installed
yajo Nov 27, 2018
fedb098
[UPD] Update password_security.pot
oca-travis Dec 12, 2018
eff2966
[MIG] password_security: Migration to 12.0
shepilov-vladislav Apr 12, 2019
434f03d
[FIX] password_security: correct readme fragments
sbidoul May 11, 2019
221dd0b
[UPD] README.rst
OCA-git-bot May 11, 2019
cc1726a
[FIX] 12.0 `password_security` - Reset Password
amkarthik Jul 18, 2019
4648cdd
[FIX] 12.0 `password_security` - Reset Password
amkarthik Jul 22, 2019
4767af6
[UPD] README.rst
OCA-git-bot Jul 29, 2019
bfb3486
Add zxcvbn to password security
fkantelberg Sep 1, 2019
3e3e80d
Force add zxcvbn js lib
fkantelberg Sep 7, 2019
3879412
[UPD] README.rst
OCA-git-bot Oct 1, 2019
6cbfd48
Translated using Weblate (Croatian)
badbole Nov 13, 2019
abbad29
[FIX] [12.0] password_security - redirection fails when password_secu…
amkarthik Jul 23, 2019
f39be95
password_security 12.0.1.1.2
OCA-git-bot Mar 30, 2020
f2595e6
making password_security compatible with odoo 13.0
Moro-Code Apr 23, 2020
d2e04a0
add external dependency
Moro-Code Apr 27, 2020
354ad32
Translated using Weblate (Portuguese)
pedrocs-exo Oct 12, 2020
29baa75
Translated using Weblate (Portuguese)
pedrocs-exo Oct 13, 2020
a1c834b
[UPD] Update password_security.pot
oca-travis Nov 30, 2020
f3ed576
Update translation files
oca-transbot Nov 30, 2020
d333ac0
Reformat password_security to match tests
llacroix Dec 10, 2020
9e5ae02
[UPD] Update password_security.pot
oca-travis Feb 2, 2021
722cdff
[UPD] README.rst
OCA-git-bot Feb 2, 2021
e6ddb7d
[MIG] Migrated the module in v14.
Chandresh-SerpentCS Feb 10, 2021
ae46d60
[IMP] Improved the code.
Chandresh-SerpentCS Feb 22, 2021
e952ec4
[FIX] password_policy: error messages properly presented to the user
dreispt Mar 25, 2021
17de63d
[UPD] Update password_security.pot
oca-travis Mar 25, 2021
3793e36
[UPD] README.rst
OCA-git-bot Mar 25, 2021
29f5baf
Translated using Weblate (Finnish)
jarmokortetjarvi Nov 17, 2021
e513e56
Translated using Weblate (Swedish)
beremavertel Feb 9, 2022
dade4ed
Translated using Weblate (Swedish)
beremavertel Feb 10, 2022
7ec9eda
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 31, 2022
1cc0fcb
[IMP] password_security: black, isort, prettier
dsolanki-initos Jan 9, 2023
6a84f8e
[MIG] password_security: Migration to 15.0
dsolanki-initos Jan 9, 2023
c1e4967
[UPD] Update password_security.pot
Feb 3, 2023
8d3f861
[UPD] README.rst
OCA-git-bot Feb 3, 2023
4fb6a7d
[16.0][MIG] password_security
astirpe Feb 20, 2023
c48727a
[MIG] password_security: migration of password_length
astirpe Mar 10, 2023
7f48ae6
[MIG] password_security: explicit super()
astirpe Mar 10, 2023
2ebf6b3
[FIX] password_security: access rights for portal user with replacement
astirpe May 31, 2023
c0918a7
[FIX] password_security: compatibility with 2FA
astirpe Jun 15, 2023
6fadce1
[FIX] password_security: fix _order of res.users.pass.history
astirpe Jul 25, 2023
343dadb
[FIX] password_security: fix test on missing partner given for new user
astirpe Jul 25, 2023
17be36a
[FIX] password_security: adapt test to auth_signup_verify_email
astirpe Jul 25, 2023
e767415
[IMP] password_security: config settings refactoring
astirpe Jul 25, 2023
d1c6a97
[IMP] password_security: remove password_estimate
astirpe Jul 27, 2023
34d3f10
Update password_security/views/res_config_settings_views.xml
astirpe Aug 7, 2023
aa21235
[UPD] Update password_security.pot
Oct 10, 2023
ef3af70
[BOT] post-merge updates
OCA-git-bot Oct 10, 2023
11ea91c
Update translation files
weblate Oct 10, 2023
f53b340
Translated using Weblate (Italian)
mymage Oct 13, 2023
0c550b5
Translated using Weblate (Italian)
francesco-ooops Oct 13, 2023
a84d6d2
Translated using Weblate (Spanish)
Ivorra78 Oct 15, 2023
0b29f5f
Translated using Weblate (Italian)
mymage Jan 4, 2024
461c284
[IMP] password_security: pre-commit stuff
Jan 31, 2024
2e04219
[MIG] password_security: Migration to 17.0
Jan 31, 2024
4ceb8b3
[IMP] password_security: use ir.config_parameter
alexis-via Nov 16, 2024
efb6c10
[IMP] password_security: pre-commit auto fixes
IsabelAForgeFlow Mar 10, 2025
3db0c87
[ADD] auth_oauth_filter_by_domain
natuan9 Mar 13, 2025
2d39310
[IMP] auth_oauth_filter_by_domain: pre-commit auto fixes
natuan9 Mar 26, 2025
23e0bd2
[MIG] auth_oauth_filter_by_domain: Migration to 18.0
natuan9 Mar 26, 2025
438fe1e
[add] auth_oauth_multi_token
Jul 18, 2016
2499447
[MIG+IMP][10.0] auth_oauth_multi_token
simahawk Oct 17, 2017
423eb92
[MIG][11.0] auth_oauth_multi_token
fmdl Apr 30, 2018
8e29723
[MIG] auth_oauth_multi_token: Migration to 12.0
fmdl May 31, 2019
57aa020
[IMP] auth_oauth_multi_token: black, isort, prettier
Sep 21, 2020
bd7109a
[MIG] auth_oauth_multi_token: v13
Sep 21, 2020
aba44d8
auth_oauth_multi_token: index
sbidoul Apr 13, 2021
23460e5
auth_oauth_multi_token: cascade delete tokens
sbidoul Apr 13, 2021
3118210
auth_oauth_multi_token: reset main token on clear
sbidoul Apr 13, 2021
51d4b15
auth_oauth_multi_token: add contributor
sbidoul Apr 14, 2021
aa6fbb5
[IMP] auth_oauth_multi_token: preserve _oauth_clear_token method
sbidoul Apr 21, 2021
c357302
[MIG] auth_oauth_multi_token: Migration to v14.0
sergio-teruel Feb 2, 2023
c14ce39
[MIG] auth_oauth_multi_token: Migration to v15.0
Feb 2, 2023
6067eae
[MIG] auth_oauth_multi_token: Migration to 16.0
May 12, 2023
7c2d011
[BOT] post-merge updates
Mar 12, 2024
51e1093
Added translation using Weblate (Italian)
mymage Mar 14, 2024
a37ae88
[IMP] auth_oauth_multi_token: pre-commit auto fixes
Sep 24, 2024
128f730
[MIG] auth_oauth_multi_token: Migration to 17.0
kobros-tech Jan 24, 2025
6dbfd06
[UPD] Update auth_oauth_multi_token.pot
Feb 17, 2025
64554c8
[BOT] post-merge updates
OCA-git-bot Feb 17, 2025
c8c8297
Update translation files
weblate Feb 17, 2025
112e1d4
[MIG] auth_oauth_multi_token: Migration to 18.0
kobros-tech Dec 31, 2024
04c2cfe
Merge PR #754 into 18.0
OCA-git-bot Apr 28, 2025
7fb8208
[UPD] Update auth_oauth_multi_token.pot
Apr 28, 2025
f8ec949
[BOT] post-merge updates
OCA-git-bot Apr 28, 2025
e313062
[FIX] auth_saml: avoid redirecting when there is a SAML error
vincent-hatakeyama Feb 11, 2025
c24e879
Merge PR #788 into 18.0
OCA-git-bot May 13, 2025
e9ed45f
[BOT] post-merge updates
OCA-git-bot May 13, 2025
485fb97
[FIX] auth_saml: message indicates that a key is found incorrectly
vincent-hatakeyama Jan 28, 2025
e227ae4
Merge PR #789 into 18.0
OCA-git-bot May 13, 2025
d760cbc
Translated using Weblate (Italian)
mymage May 16, 2025
f52fedb
Translated using Weblate (Italian)
mymage May 16, 2025
d9f65ff
[UPD] addons table in README.md
OCA-git-bot Jun 4, 2025
36290bb
[MIG] password_security: Migration to 18.0
IsabelAForgeFlow Mar 10, 2025
768eb79
[FIX] password_security: password expiration 2FA
Jan 21, 2022
148c6e5
[FIX] password_security: test separately
LauraCForgeFlow Mar 17, 2025
d82873c
Merge PR #773 into 18.0
OCA-git-bot Jun 14, 2025
c25869c
[UPD] Update password_security.pot
Jun 14, 2025
cdbd00c
[BOT] post-merge updates
OCA-git-bot Jun 14, 2025
0241037
Merge PR #727 into 18.0
OCA-git-bot Jun 14, 2025
5fd223a
[UPD] Update auth_signup_verify_email.pot
Jun 14, 2025
c82182b
[BOT] post-merge updates
OCA-git-bot Jun 14, 2025
84977a2
Merge PR #781 into 18.0
OCA-git-bot Jun 14, 2025
51bc8c7
[UPD] Update auth_oauth_filter_by_domain.pot
Jun 14, 2025
34865ee
[BOT] post-merge updates
OCA-git-bot Jun 14, 2025
937ec79
Added translation using Weblate (Italian)
mymage Jun 15, 2025
e4a9157
[18.0][FIX] auth_api_key: Use 401 for unauthorized user
anusriNPS Jun 16, 2025
af1ede2
Merge PR #806 into 18.0
OCA-git-bot Jun 16, 2025
cf63045
[BOT] post-merge updates
OCA-git-bot Jun 16, 2025
a6c72da
[IMP] auth_oauth_multi_token: make it compatible with odoo.sh "login as"
CRogos Feb 21, 2025
066b6d7
Translated using Weblate (Italian)
mymage Jun 17, 2025
c7df480
Merge PR #808 into 18.0
OCA-git-bot Jun 22, 2025
5fbaf72
[UPD] Update auth_oauth_multi_token.pot
Jun 22, 2025
e6840ea
[BOT] post-merge updates
OCA-git-bot Jun 22, 2025
0771ec7
Update translation files
weblate Jun 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ odoo_test_flavor: Both
odoo_version: 18.0
org_name: Odoo Community Association (OCA)
org_slug: OCA
rebel_module_groups: []
rebel_module_groups:
- password_security
repo_description: server-auth
repo_name: server-auth
repo_slug: server-auth
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,17 @@ jobs:
matrix:
include:
- container: ghcr.io/oca/oca-ci/py3.10-odoo18.0:latest
include: "password_security"
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.10-ocb18.0:latest
include: "password_security"
name: test with OCB
makepot: "true"
- container: ghcr.io/oca/oca-ci/py3.10-odoo18.0:latest
exclude: "password_security"
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.10-ocb18.0:latest
exclude: "password_security"
name: test with OCB
makepot: "true"
services:
Expand All @@ -51,6 +60,8 @@ jobs:
- 5432:5432
env:
OCA_ENABLE_CHECKLOG_ODOO: "1"
INCLUDE: "${{ matrix.include }}"
EXCLUDE: "${{ matrix.exclude }}"
steps:
- uses: actions/checkout@v4
with:
Expand Down
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,21 @@ Available addons
addon | version | maintainers | summary
--- | --- | --- | ---
[auth_admin_passkey](auth_admin_passkey/) | 18.0.1.0.0 | | Allows system administrator to authenticate with any account
[auth_api_key](auth_api_key/) | 18.0.1.0.0 | | Authenticate http requests from an API key
[auth_api_key_group](auth_api_key_group/) | 18.0.1.0.0 | [![simahawk](https://github.com/simahawk.png?size=30px)](https://github.com/simahawk) | Allow grouping API keys together. Grouping per se does nothing. This feature is supposed to be used by other modules to limit access to services or records based on groups of keys.
[auth_api_key](auth_api_key/) | 18.0.1.0.1 | | Authenticate http requests from an API key
[auth_api_key_group](auth_api_key_group/) | 18.0.1.0.0 | <a href='https://github.com/simahawk'><img src='https://github.com/simahawk.png' width='32' height='32' style='border-radius:50%;' alt='simahawk'/></a> | Allow grouping API keys together. Grouping per se does nothing. This feature is supposed to be used by other modules to limit access to services or records based on groups of keys.
[auth_api_key_server_env](auth_api_key_server_env/) | 18.0.1.0.0 | | Configure api keys via server env. This can be very useful to avoid mixing your keys between your various environments when restoring databases. All you have to do is to add a new section to your configuration file according to the following convention:
[auth_oidc](auth_oidc/) | 18.0.1.0.0 | [![sbidoul](https://github.com/sbidoul.png?size=30px)](https://github.com/sbidoul) | Allow users to login through OpenID Connect Provider
[auth_oauth_filter_by_domain](auth_oauth_filter_by_domain/) | 18.0.1.0.0 | <a href='https://github.com/natuan9'><img src='https://github.com/natuan9.png' width='32' height='32' style='border-radius:50%;' alt='natuan9'/></a> | Filter OAuth providers by domain
[auth_oauth_multi_token](auth_oauth_multi_token/) | 18.0.2.0.0 | | Allow multiple connection with the same OAuth account
[auth_oidc](auth_oidc/) | 18.0.1.0.0 | <a href='https://github.com/sbidoul'><img src='https://github.com/sbidoul.png' width='32' height='32' style='border-radius:50%;' alt='sbidoul'/></a> | Allow users to login through OpenID Connect Provider
[auth_oidc_environment](auth_oidc_environment/) | 18.0.1.0.0 | | This module allows to use server env for OIDC configuration
[auth_saml](auth_saml/) | 18.0.1.0.1 | [![vincent-hatakeyama](https://github.com/vincent-hatakeyama.png?size=30px)](https://github.com/vincent-hatakeyama) | SAML2 Authentication
[auth_saml](auth_saml/) | 18.0.1.0.2 | <a href='https://github.com/vincent-hatakeyama'><img src='https://github.com/vincent-hatakeyama.png' width='32' height='32' style='border-radius:50%;' alt='vincent-hatakeyama'/></a> | SAML2 Authentication
[auth_session_timeout](auth_session_timeout/) | 18.0.1.0.0 | | This module disable all inactive sessions since a given delay
[auth_signup_verify_email](auth_signup_verify_email/) | 18.0.1.0.0 | | Force uninvited users to use a good email for signup
[auth_user_case_insensitive](auth_user_case_insensitive/) | 18.0.1.0.0 | | Makes the user login field case insensitive
[base_user_empty_password](base_user_empty_password/) | 18.0.1.0.0 | [![grindtildeath](https://github.com/grindtildeath.png?size=30px)](https://github.com/grindtildeath) | Allows to empty password of users
[base_user_empty_password](base_user_empty_password/) | 18.0.1.0.0 | <a href='https://github.com/grindtildeath'><img src='https://github.com/grindtildeath.png' width='32' height='32' style='border-radius:50%;' alt='grindtildeath'/></a> | Allows to empty password of users
[base_user_show_email](base_user_show_email/) | 18.0.1.0.0 | | Untangle user login and email
[impersonate_login](impersonate_login/) | 18.0.1.0.0 | [![Kev-Roche](https://github.com/Kev-Roche.png?size=30px)](https://github.com/Kev-Roche) | tools
[impersonate_login](impersonate_login/) | 18.0.1.0.0 | <a href='https://github.com/Kev-Roche'><img src='https://github.com/Kev-Roche.png' width='32' height='32' style='border-radius:50%;' alt='Kev-Roche'/></a> | tools
[password_security](password_security/) | 18.0.1.0.0 | | Allow admin to set password security requirements.

[//]: # (end addons)

Expand Down
30 changes: 17 additions & 13 deletions auth_api_key/README.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

============
Auth Api Key
============
Expand All @@ -7,13 +11,13 @@ Auth Api Key
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:bfed24ce8c3a57ea6a6270a37d412ab6fe00b5d2004270943ad5f9039a572fcc
!! source digest: sha256:78e3946b0dbb81bb6fbf6c434aaf5214faec00449a765c2f41e321b65024ba05
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github
Expand Down Expand Up @@ -45,11 +49,11 @@ Odoo allows users to authenticate ``XMLRPC/JSONRPC`` calls using their
API key instead of a password by native API keys (``res.users.apikey``).
However, ``auth_api_key`` has some special features of its own such as:

- API keys remain usable even when the user is inactive, if enabled via
settings (e.g., for system users in a shopinvader case).
- Supports dual authentication via Basic Auth and API_KEY in separate
HTTP headers.
- Admins can manage API keys for all users
- API keys remain usable even when the user is inactive, if enabled via
settings (e.g., for system users in a shopinvader case).
- Supports dual authentication via Basic Auth and API_KEY in separate
HTTP headers.
- Admins can manage API keys for all users

Given these advantages, particularly in use case like system user
authentication, we have decided to keep the ``auth_api_key`` module
Expand Down Expand Up @@ -105,12 +109,12 @@ Authors
Contributors
------------

- Denis Robinet <denis.robinet@acsone.eu>
- Laurent Mignon <laurent.mignon@acsone.eu>
- Quentin Groulard <quentin.groulard@acsone.eu>
- Sébastien Beau <sebastien.beau@akretion.com>
- Chafique Delli <chafique.delli@akretion.com>
- Thien Vo Hong <thienvh@trobz.com>
- Denis Robinet <denis.robinet@acsone.eu>
- Laurent Mignon <laurent.mignon@acsone.eu>
- Quentin Groulard <quentin.groulard@acsone.eu>
- Sébastien Beau <sebastien.beau@akretion.com>
- Chafique Delli <chafique.delli@akretion.com>
- Thien Vo Hong <thienvh@trobz.com>

Other credits
-------------
Expand Down
2 changes: 1 addition & 1 deletion auth_api_key/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Auth Api Key",
"summary": """
Authenticate http requests from an API key""",
"version": "18.0.1.0.0",
"version": "18.0.1.0.1",
"license": "LGPL-3",
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/server-auth",
Expand Down
5 changes: 3 additions & 2 deletions auth_api_key/models/ir_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@

import logging

from werkzeug.exceptions import Unauthorized

from odoo import models
from odoo.exceptions import AccessDenied
from odoo.http import request

_logger = logging.getLogger(__name__)
Expand All @@ -33,4 +34,4 @@ def _auth_method_api_key(cls):
request.auth_api_key_id = auth_api_key.id
return True
_logger.error("Wrong HTTP_API_KEY, access denied")
raise AccessDenied()
raise Unauthorized()
36 changes: 21 additions & 15 deletions auth_api_key/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>Auth Api Key</title>
<title>README.rst</title>
<style type="text/css">

/*
Expand Down Expand Up @@ -360,16 +360,21 @@
</style>
</head>
<body>
<div class="document" id="auth-api-key">
<h1 class="title">Auth Api Key</h1>
<div class="document">


<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
</a>
<div class="section" id="auth-api-key">
<h1>Auth Api Key</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:bfed24ce8c3a57ea6a6270a37d412ab6fe00b5d2004270943ad5f9039a572fcc
!! source digest: sha256:78e3946b0dbb81bb6fbf6c434aaf5214faec00449a765c2f41e321b65024ba05
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-auth/tree/18.0/auth_api_key"><img alt="OCA/server-auth" src="https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-auth-18-0/server-auth-18-0-auth_api_key"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-auth&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/license-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-auth/tree/18.0/auth_api_key"><img alt="OCA/server-auth" src="https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-auth-18-0/server-auth-18-0-auth_api_key"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-auth&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Authenticate http requests from an API key.</p>
<p>API keys are codes passed in (in the http header API-KEY) by programs
calling an API in order to identify -in this case- the calling program’s
Expand Down Expand Up @@ -407,44 +412,44 @@ <h1 class="title">Auth Api Key</h1>
</ul>
</div>
<div class="section" id="configuration">
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<h2><a class="toc-backref" href="#toc-entry-1">Configuration</a></h2>
<p>The api key menu is available into Settings &gt; Technical in debug mode.
By default, when you create an API key, the key is saved into the
database.</p>
<p>If you want to manage them via serve environment settings use
auth_api_key_server_env.</p>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<h2><a class="toc-backref" href="#toc-entry-2">Usage</a></h2>
<p>To apply this authentication system to your http request you must set
‘api_key’ as value for the ‘auth’ parameter of your route definition
into your controller.</p>
<pre class="code python literal-block">
<span class="k">class</span> <span class="nc">MyController</span><span class="p">(</span><span class="n">Controller</span><span class="p">):</span><span class="w">
<span class="k">class</span><span class="w"> </span><span class="nc">MyController</span><span class="p">(</span><span class="n">Controller</span><span class="p">):</span><span class="w">

</span> <span class="nd">&#64;route</span><span class="p">(</span><span class="s1">'/my_service'</span><span class="p">,</span> <span class="n">auth</span><span class="o">=</span><span class="s1">'api_key'</span><span class="p">,</span> <span class="o">...</span><span class="p">)</span><span class="w">
</span> <span class="k">def</span> <span class="nf">my_service</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span><span class="w">
</span> <span class="k">def</span><span class="w"> </span><span class="nf">my_service</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span><span class="w">
</span> <span class="k">pass</span>
</pre>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-auth/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/server-auth/issues/new?body=module:%20auth_api_key%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
<h2><a class="toc-backref" href="#toc-entry-4">Credits</a></h2>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
<h3><a class="toc-backref" href="#toc-entry-5">Authors</a></h3>
<ul class="simple">
<li>ACSONE SA/NV</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<h3><a class="toc-backref" href="#toc-entry-6">Contributors</a></h3>
<ul class="simple">
<li>Denis Robinet &lt;<a class="reference external" href="mailto:denis.robinet&#64;acsone.eu">denis.robinet&#64;acsone.eu</a>&gt;</li>
<li>Laurent Mignon &lt;<a class="reference external" href="mailto:laurent.mignon&#64;acsone.eu">laurent.mignon&#64;acsone.eu</a>&gt;</li>
Expand All @@ -455,12 +460,12 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
</ul>
</div>
<div class="section" id="other-credits">
<h2><a class="toc-backref" href="#toc-entry-7">Other credits</a></h2>
<h3><a class="toc-backref" href="#toc-entry-7">Other credits</a></h3>
<p>The migration of this module from 17.0 to 18.0 was financially supported
by Camptocamp.</p>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
<h3><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h3>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
Expand All @@ -473,5 +478,6 @@ <h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
</div>
</div>
</div>
</div>
</body>
</html>
6 changes: 3 additions & 3 deletions auth_api_key_server_env/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-02-04 22:36+0000\n"
"PO-Revision-Date: 2025-05-16 09:24+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"
"X-Generator: Weblate 5.10.4\n"

#. module: auth_api_key_server_env
#: model:ir.model,name:auth_api_key_server_env.model_auth_api_key
Expand All @@ -24,7 +24,7 @@ msgstr "Chiave API"
#. module: auth_api_key_server_env
#: model:ir.model.fields,field_description:auth_api_key_server_env.field_auth_api_key__server_env_defaults
msgid "Server Env Defaults"
msgstr "Server ambiente predefinito"
msgstr "Predefiniti ambiente server"

#. module: auth_api_key_server_env
#: model:ir.model.fields,field_description:auth_api_key_server_env.field_auth_api_key__tech_name
Expand Down
Loading