Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] auth_admin_passkey: Migration to 18.0 #740

Merged
merged 87 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
fa52754
[ADD] new module 'auth_admin_passkey' that allow admin user (uid=1) t…
legalsylvain Mar 17, 2014
795fe3d
[IMP] move 'if' test to avoid useless call to check_credentials funct…
legalsylvain Mar 21, 2014
dcb217d
[IMP] 'auth_admin_passkey' : Manage the special case where an user ha…
legalsylvain Mar 23, 2014
c2e5686
[ADD] 'auth_admin_passkey' : add '.pot' file.
legalsylvain Mar 23, 2014
1069b65
[IMP] 'auth_admin_passkey' works now indepently from the order of the…
legalsylvain Mar 23, 2014
791a3a4
[IMP] Emails are now translated.
legalsylvain Mar 23, 2014
7c2ddff
[REF] Pep8 and import conventions.
legalsylvain Mar 23, 2014
6ff680e
[FIX] res_config.py : incorrect call. self.pool('xxx') -> self.pool['…
legalsylvain Mar 24, 2014
f341990
[ADD] copyright information in all files.
legalsylvain Mar 31, 2014
5142325
[REF] Pep8.
legalsylvain Mar 31, 2014
8d23228
[REF] change order in an algorithm;
legalsylvain Mar 31, 2014
11cffce
[FIX] Incorrect import.
legalsylvain Mar 31, 2014
75a8139
[REF] typo.
legalsylvain Mar 31, 2014
f9c63f9
[FIX] translation.
legalsylvain Apr 2, 2014
cdf1f5c
Launchpad automatic translations update.
Apr 9, 2014
70d57ac
Launchpad automatic translations update.
Apr 17, 2014
8e10a24
Launchpad automatic translations update.
Apr 28, 2014
f8763d7
[ADD] Test #6 to test the bug #1319391;
legalsylvain May 14, 2014
f3fba0a
[FIX] bug #1319391;
legalsylvain May 14, 2014
37e1713
[REF] fix comments;
legalsylvain May 14, 2014
e87178d
Launchpad automatic translations update.
May 24, 2014
f37114f
[REF] 'auth_admin_passkey': flake8.
legalsylvain Jul 3, 2014
edb7a30
move all modules to __unported__ on master branch and set installable…
sbidoul Jul 12, 2014
8668e10
[CHG] auth_admin_passkey: migration to 8.0
anthony-muschang Dec 11, 2014
c6889a7
[CHG] auth_admin_passkey: move description to README.md
anthony-muschang Dec 15, 2014
e4507fa
[CHG] auth_admin_passkey: rename README.md to README.rst
anthony-muschang Dec 15, 2014
60419bd
[IMP] auth_admin_passkey: Moved icon
pedrobaeza Jan 16, 2015
1d4f995
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
e6e7a7c
OCA Transbot updated translations from Transifex
oca-transbot Oct 5, 2015
8b48070
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
7a227fe
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
df2d6e6
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
cce296b
OCA Transbot updated translations from Transifex
oca-transbot Jan 31, 2016
7785086
auth_admin_passkey to new API (#519)
rvalyi Nov 22, 2016
91358c4
OCA Transbot updated translations from Transifex
oca-transbot Nov 29, 2016
0e57521
replace OpenERP with Odoo
gurneyalex Jan 10, 2017
a2222ad
OCA Transbot updated translations from Transifex
oca-transbot Jan 14, 2017
d7fe11e
auth_admin_passkey bug #699
alexis-via Feb 28, 2017
421c13d
crash when the options "Send email to ..." on the configuration page …
alexis-via Feb 28, 2017
0699f22
PEP8 fix
alexis-via Mar 2, 2017
d7722ea
OCA Transbot updated translations from Transifex
oca-transbot Mar 4, 2017
92368e5
auth_admin_passkey: Migrate module for odoo 10
Fenkiou Mar 13, 2017
4bc693e
OCA Transbot updated translations from Transifex
oca-transbot Aug 5, 2017
8f46463
[FIX] auth_admin_passkey: normal users are not able to read the admin…
sebalix Aug 10, 2017
e137b7d
OCA Transbot updated translations from Transifex
oca-transbot Dec 2, 2017
6963a47
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
1fb30db
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
a2c9303
[UPD] Update auth_admin_passkey.pot
oca-travis Jun 24, 2018
87afbaf
[FIX] auth_admin_passkey : AccessError sending mail (#1298)
legalsylvain Jun 25, 2018
14b5e8e
Translated using Weblate (Portuguese)
pedrocs-exo Jul 30, 2018
9d16784
[FIX] Import safe_eval function instead of module.
Jan 30, 2019
e4c347d
[PORT] 12.0: auth_admin_passkey
legalsylvain Aug 9, 2019
e9fd157
[FIX] make password stronger to avoid error with password_security + …
legalsylvain Aug 9, 2019
1745ae5
[FIX] rst syntax
legalsylvain Aug 13, 2019
a26ee7f
[UPD] README.rst
OCA-git-bot Oct 1, 2019
ce06bd5
Translated using Weblate (Croatian)
badbole Nov 13, 2019
7df0954
Translated using Weblate (Portuguese (Brazil))
Nov 24, 2019
dd3ceb5
[IMP] : black, isort, prettier
bizzappdev Oct 2, 2020
8c72f3b
[MIG]auth_admin_passkey Migrate to 13
bizzappdev Oct 2, 2020
265c8f6
[IMP] auth_admin_passkey black, isort, prettier.
dsolanki-initos Nov 3, 2020
efbb5d8
[MIG] Migrate module auth_admin_passkey to v14.
dsolanki-initos Nov 3, 2020
259f89c
[UPD] Update auth_admin_passkey.pot
oca-travis Jan 18, 2021
5e534b8
[UPD] README.rst
OCA-git-bot Jan 18, 2021
e7d0dda
Translated using Weblate (Italian)
primes2h Feb 12, 2021
3122e8b
Translated using Weblate (Italian)
SimoRubi Feb 21, 2022
098519c
[FIX] auth_admin_passkey: error in README
alexis-via Jul 12, 2022
f23c6c1
[UPD] README.rst
OCA-git-bot Jul 12, 2022
83f1f3d
auth_admin_passkey 14.0.1.0.1
OCA-git-bot Jul 12, 2022
0258933
[IMP] auth_admin_passkey: pre-commit stuff
AnizR Jan 16, 2023
545ed92
[MIG] auth_admin_passkey: migration to 16.0
AnizR Jan 16, 2023
051423e
[IMP] possibility to store password sha512 encrypted in config
AnizR Feb 19, 2023
025cd1c
[UPD] Update auth_admin_passkey.pot
Mar 20, 2023
d775fa5
[UPD] README.rst
OCA-git-bot Mar 20, 2023
9c1bfb1
Translated using Weblate (Spanish)
Ivorra78 Aug 25, 2023
3dfd33c
[UPD] README.rst
OCA-git-bot Sep 3, 2023
6d7d036
Update translation files
weblate Oct 9, 2023
238c2f5
Translated using Weblate (Spanish)
Ivorra78 Oct 15, 2023
e56ebe8
[IMP] auth_admin_passkey: pre-commit auto fixes
amkarthik Nov 21, 2023
ed6ee0a
[MIG] auth_admin_passkey: Migration to 17.0
amkarthik Nov 21, 2023
09df575
[UPD] Update auth_admin_passkey.pot
Nov 26, 2023
0eb7327
[BOT] post-merge updates
OCA-git-bot Nov 26, 2023
e85793a
Translated using Weblate (Italian)
mymage Feb 4, 2024
b254638
[IMP] option for TOTP/2FA bypass for admin passkey
codeagencybe Aug 25, 2023
6c02ccc
Check that request.session exists before accessing it
astirpe Mar 13, 2024
6e3c744
[BOT] post-merge updates
OCA-git-bot Aug 29, 2024
802125b
[IMP] auth_admin_passkey: pre-commit auto fixes
BT-dlagin Dec 20, 2024
0772cac
[18.0][MIG] auth_admin_passkey: Migration to 18.0
BT-dlagin Dec 20, 2024
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
125 changes: 125 additions & 0 deletions auth_admin_passkey/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
===============================================
Authentification - System Administrator Passkey
===============================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ae816e08cfcea8c3af0717cbc43b2cae99b9842b7bd11233d51b41432c0a6a9c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github
:target: https://github.com/OCA/server-auth/tree/18.0/auth_admin_passkey
:alt: OCA/server-auth
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-auth-18-0/server-auth-18-0-auth_admin_passkey
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-auth&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the functionality of users module to support loging
in with an extra system administrator password in other user accounts.

- System Administrator has now the possibility to login in with any
login
- According to the configuration, Odoo will send a mail to user and
admin to indicate them
- According to the configuration, password can be stored encrypted in
configuration file

**Table of contents**

.. contents::
:local:

Configuration
=============

To enable this feature, once the module installed, you have to add the
following keys in your ``odoo.cfg`` configuration file.

- ``auth_admin_passkey_password``. The password that allows user to
logging in with any login. If not set, the feature is disabled.
- ``auth_admin_passkey_password_sha512_encrypted`` (default False), if
enabled, auth_admin_passkey_password should be the password encrypted
with sha512. On linux, this can be done using this command:
``echo -n YOUR_PASSWORD_AUTH_ADMIN_PASSKEY | sha512sum``
- ``auth_admin_passkey_send_to_user`` (default True), if enabled, an
email will be send to the user, if his account has been used by the
System Administrator.
- ``auth_admin_passkey_sysadmin_email``. If set, an email will be sent
to this mail.
- ``auth_admin_passkey_sysadmin_lang``. the language (exemple en_US),
used for the mail sent to the System Administrator. If not set, the
language of the SUPERUSER_ID user will be used.
- ``auth_admin_passkey_ignore_totp`` (default False), if enabled, then
2FA will be ignored.

**typical Dev / Test configuration section**

No keys to add.

**typical Production configuration section**

.. code:: ini

auth_admin_passkey_password = PASSKEY_PASSWORD
auth_admin_passkey_password_sha512_encrypted = True
auth_admin_passkey_send_to_user = True
auth_admin_passkey_sysadmin_email = SYSADMIN_EMAIL
auth_admin_passkey_sysadmin_lang = SYSADMIN_LANG

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-auth/issues>`_.
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
`feedback <https://github.com/OCA/server-auth/issues/new?body=module:%20auth_admin_passkey%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* GRAP

Contributors
------------

- Eugen Don <[email protected]>
- Alexandre Papin (https://twitter.com/Fenkiou)
- Sylvain LE GAL (https://twitter.com/legalsylvain)
- Dhara Solanki <[email protected]> (http://www.initos.com)
- Zina Rasoamanana <[email protected]>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/server-auth <https://github.com/OCA/server-auth/tree/18.0/auth_admin_passkey>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions auth_admin_passkey/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
15 changes: 15 additions & 0 deletions auth_admin_passkey/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (C) 2013-Today GRAP (http://www.grap.coop)
# @author Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "Authentification - System Administrator Passkey",
"summary": "Allows system administrator to authenticate with any account",
"version": "18.0.1.0.0",
"category": "base",
"author": "GRAP,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/server-auth",
"license": "AGPL-3",
"depends": ["mail"],
"installable": True,
}
50 changes: 50 additions & 0 deletions auth_admin_passkey/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * auth_admin_passkey
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: server-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-12 03:50+0000\n"
"PO-Revision-Date: 2017-01-11 15:36+0000\n"
"Last-Translator: OCA Transbot <[email protected]>\n"
"Language-Team: Arabic (http://www.transifex.com/oca/OCA-server-tools-8-0/"
"language/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: auth_admin_passkey
#. odoo-python
#: code:addons/auth_admin_passkey/models/res_users.py:0
#, python-format
msgid "Passkey used"
msgstr ""

#. module: auth_admin_passkey
#. odoo-python
#: code:addons/auth_admin_passkey/models/res_users.py:0
#, python-format
msgid ""
"System Administrator user used his passkey to login with %(login)s.\n"
"\n"
"\n"
"\n"
"Technicals informations belows : \n"
"\n"
"- Login date : %(login_date)s\n"
"\n"
msgstr ""

#. module: auth_admin_passkey
#: model:ir.model,name:auth_admin_passkey.model_res_users
msgid "User"
msgstr ""

#~ msgid "Users"
#~ msgstr "المستخدمون"
41 changes: 41 additions & 0 deletions auth_admin_passkey/i18n/auth_admin_passkey.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * auth_admin_passkey
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: auth_admin_passkey
#. odoo-python
#: code:addons/auth_admin_passkey/models/res_users.py:0
#, python-format
msgid "Passkey used"
msgstr ""

#. module: auth_admin_passkey
#. odoo-python
#: code:addons/auth_admin_passkey/models/res_users.py:0
#, python-format
msgid ""
"System Administrator user used his passkey to login with %(login)s.\n"
"\n"
"\n"
"\n"
"Technicals informations belows : \n"
"\n"
"- Login date : %(login_date)s\n"
"\n"
msgstr ""

#. module: auth_admin_passkey
#: model:ir.model,name:auth_admin_passkey.model_res_users
msgid "User"
msgstr ""
49 changes: 49 additions & 0 deletions auth_admin_passkey/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * auth_admin_passkey
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: server-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-17 07:51+0000\n"
"PO-Revision-Date: 2015-09-18 13:53+0000\n"
"Last-Translator: <>\n"
"Language-Team: Catalan (http://www.transifex.com/oca/OCA-server-tools-8-0/"
"language/ca/)\n"
"Language: ca\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"

#. module: auth_admin_passkey
#. odoo-python
#: code:addons/auth_admin_passkey/models/res_users.py:0
#, python-format
msgid "Passkey used"
msgstr ""

#. module: auth_admin_passkey
#. odoo-python
#: code:addons/auth_admin_passkey/models/res_users.py:0
#, python-format
msgid ""
"System Administrator user used his passkey to login with %(login)s.\n"
"\n"
"\n"
"\n"
"Technicals informations belows : \n"
"\n"
"- Login date : %(login_date)s\n"
"\n"
msgstr ""

#. module: auth_admin_passkey
#: model:ir.model,name:auth_admin_passkey.model_res_users
msgid "User"
msgstr ""

#~ msgid "Users"
#~ msgstr "Usuaris"
49 changes: 49 additions & 0 deletions auth_admin_passkey/i18n/da.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * auth_admin_passkey
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: server-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-18 02:08+0000\n"
"PO-Revision-Date: 2015-09-18 13:53+0000\n"
"Last-Translator: <>\n"
"Language-Team: Danish (http://www.transifex.com/oca/OCA-server-tools-8-0/"
"language/da/)\n"
"Language: da\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"

#. module: auth_admin_passkey
#. odoo-python
#: code:addons/auth_admin_passkey/models/res_users.py:0
#, python-format
msgid "Passkey used"
msgstr ""

#. module: auth_admin_passkey
#. odoo-python
#: code:addons/auth_admin_passkey/models/res_users.py:0
#, python-format
msgid ""
"System Administrator user used his passkey to login with %(login)s.\n"
"\n"
"\n"
"\n"
"Technicals informations belows : \n"
"\n"
"- Login date : %(login_date)s\n"
"\n"
msgstr ""

#. module: auth_admin_passkey
#: model:ir.model,name:auth_admin_passkey.model_res_users
msgid "User"
msgstr ""

#~ msgid "Users"
#~ msgstr "Brugere"
Loading
Loading