Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
5a5797d
[ADD] new module 'auth_admin_passkey' that allow admin user (uid=1) t…
legalsylvain Mar 17, 2014
8da8353
[IMP] move 'if' test to avoid useless call to check_credentials funct…
legalsylvain Mar 21, 2014
322f1f1
[IMP] 'auth_admin_passkey' : Manage the special case where an user ha…
legalsylvain Mar 23, 2014
4f726e9
[ADD] 'auth_admin_passkey' : add '.pot' file.
legalsylvain Mar 23, 2014
d42a862
[IMP] 'auth_admin_passkey' works now indepently from the order of the…
legalsylvain Mar 23, 2014
005c3d1
[IMP] Emails are now translated.
legalsylvain Mar 23, 2014
af08295
[REF] Pep8 and import conventions.
legalsylvain Mar 23, 2014
8f3d1a1
[FIX] res_config.py : incorrect call. self.pool('xxx') -> self.pool['…
legalsylvain Mar 24, 2014
3ea12df
[ADD] copyright information in all files.
legalsylvain Mar 31, 2014
c1ee112
[REF] Pep8.
legalsylvain Mar 31, 2014
465dc26
[REF] change order in an algorithm;
legalsylvain Mar 31, 2014
3c9a44e
[FIX] Incorrect import.
legalsylvain Mar 31, 2014
8202e0d
[REF] typo.
legalsylvain Mar 31, 2014
967b3ea
[FIX] translation.
legalsylvain Apr 2, 2014
d8a6e78
Launchpad automatic translations update.
Apr 9, 2014
dfc04be
Launchpad automatic translations update.
Apr 17, 2014
a5bb095
Launchpad automatic translations update.
Apr 28, 2014
10a4d71
[ADD] Test #6 to test the bug #1319391;
legalsylvain May 14, 2014
ab86d60
[FIX] bug #1319391;
legalsylvain May 14, 2014
172998a
[REF] fix comments;
legalsylvain May 14, 2014
15557a8
Launchpad automatic translations update.
May 24, 2014
b329a1e
[REF] 'auth_admin_passkey': flake8.
legalsylvain Jul 3, 2014
c7b26ba
move all modules to __unported__ on master branch and set installable…
sbidoul Jul 12, 2014
cd9ed57
[CHG] auth_admin_passkey: migration to 8.0
anthony-muschang Dec 11, 2014
a2623bc
[CHG] auth_admin_passkey: move description to README.md
anthony-muschang Dec 15, 2014
73442d7
[CHG] auth_admin_passkey: rename README.md to README.rst
anthony-muschang Dec 15, 2014
f280ec6
[IMP] auth_admin_passkey: Moved icon
pedrobaeza Jan 16, 2015
9cb2a8b
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
af9b1f1
OCA Transbot updated translations from Transifex
oca-transbot Oct 5, 2015
5c08e9c
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
502371f
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
f9bb40c
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
9f99bfb
OCA Transbot updated translations from Transifex
oca-transbot Jan 31, 2016
784666d
auth_admin_passkey to new API (#519)
rvalyi Nov 22, 2016
89806a1
OCA Transbot updated translations from Transifex
oca-transbot Nov 29, 2016
b7bc693
replace OpenERP with Odoo
gurneyalex Jan 10, 2017
6e87b79
OCA Transbot updated translations from Transifex
oca-transbot Jan 14, 2017
75ebcca
auth_admin_passkey bug #699
alexis-via Feb 28, 2017
2e48173
crash when the options "Send email to ..." on the configuration page …
alexis-via Feb 28, 2017
9c466b8
PEP8 fix
alexis-via Mar 2, 2017
08353e3
OCA Transbot updated translations from Transifex
oca-transbot Mar 4, 2017
2adc076
auth_admin_passkey: Migrate module for odoo 10
Fenkiou Mar 13, 2017
68b9b0d
OCA Transbot updated translations from Transifex
oca-transbot Aug 5, 2017
27c831c
[FIX] auth_admin_passkey: normal users are not able to read the admin…
sebalix Aug 10, 2017
2e30d67
OCA Transbot updated translations from Transifex
oca-transbot Dec 2, 2017
35e2129
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
0b28754
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
654d75c
[UPD] Update auth_admin_passkey.pot
oca-travis Jun 24, 2018
ed9aff7
[FIX] auth_admin_passkey : AccessError sending mail (#1298)
legalsylvain Jun 25, 2018
cd9e396
Translated using Weblate (Portuguese)
pedrocs-exo Jul 30, 2018
a853dc4
[FIX] Import safe_eval function instead of module.
Jan 30, 2019
270291f
[PORT] 12.0: auth_admin_passkey
legalsylvain Aug 9, 2019
e9aeb16
[FIX] make password stronger to avoid error with password_security + …
legalsylvain Aug 9, 2019
6ab1a96
[FIX] rst syntax
legalsylvain Aug 13, 2019
6d77bd2
[UPD] README.rst
OCA-git-bot Oct 1, 2019
ac6cfcc
Translated using Weblate (Croatian)
badbole Nov 13, 2019
4fd0098
Translated using Weblate (Portuguese (Brazil))
Nov 24, 2019
bbe29a3
[IMP] : black, isort, prettier
bizzappdev Oct 2, 2020
b06f5d8
[MIG]auth_admin_passkey Migrate to 13
bizzappdev Oct 2, 2020
0db321e
[IMP] auth_admin_passkey black, isort, prettier.
dsolanki-initos Nov 3, 2020
7cc0779
[MIG] Migrate module auth_admin_passkey to v14.
dsolanki-initos Nov 3, 2020
baf9ad5
[UPD] Update auth_admin_passkey.pot
oca-travis Jan 18, 2021
82728c2
[UPD] README.rst
OCA-git-bot Jan 18, 2021
f0573c2
Translated using Weblate (Italian)
primes2h Feb 12, 2021
a086b97
Translated using Weblate (Italian)
SimoRubi Feb 21, 2022
b618f5f
[FIX] auth_admin_passkey: error in README
alexis-via Jul 12, 2022
34129c9
[UPD] README.rst
OCA-git-bot Jul 12, 2022
622a74a
auth_admin_passkey 14.0.1.0.1
OCA-git-bot Jul 12, 2022
4fbaf1e
[IMP] auth_admin_passkey: pre-commit stuff
AnizR Jan 16, 2023
7443fb1
[MIG] auth_admin_passkey: migration to 16.0
AnizR Jan 16, 2023
4633221
[IMP] possibility to store password sha512 encrypted in config
AnizR Feb 19, 2023
dec280e
[UPD] Update auth_admin_passkey.pot
Mar 20, 2023
d390773
[UPD] README.rst
OCA-git-bot Mar 20, 2023
16f5a14
Translated using Weblate (Spanish)
Ivorra78 Aug 25, 2023
ed03fc7
[UPD] README.rst
OCA-git-bot Sep 3, 2023
6f42184
Update translation files
weblate Oct 9, 2023
8fe1ca5
Translated using Weblate (Spanish)
Ivorra78 Oct 15, 2023
b77a37c
[IMP] auth_admin_passkey: pre-commit auto fixes
amkarthik Nov 21, 2023
9df40d1
[MIG] auth_admin_passkey: Migration to 17.0
amkarthik Nov 21, 2023
d04824d
[UPD] Update auth_admin_passkey.pot
Nov 26, 2023
aca40f0
[BOT] post-merge updates
OCA-git-bot Nov 26, 2023
627a115
Translated using Weblate (Italian)
mymage Feb 4, 2024
6df7660
[IMP] option for TOTP/2FA bypass for admin passkey
codeagencybe Aug 25, 2023
333be69
Check that request.session exists before accessing it
astirpe Mar 13, 2024
78d0eb3
[BOT] post-merge updates
OCA-git-bot Aug 29, 2024
c1be37f
[IMP] auth_admin_passkey: pre-commit auto fixes
BT-dlagin Dec 20, 2024
aeb51e0
[18.0][MIG] auth_admin_passkey: Migration to 18.0
BT-dlagin Dec 20, 2024
c2685d2
[UPD] Update auth_admin_passkey.pot
Jan 3, 2025
429b8a0
[BOT] post-merge updates
OCA-git-bot Jan 3, 2025
9d38df7
Update translation files
weblate Jan 3, 2025
f0e7b58
[19.0][MIG] auth_admin_passkey
andrel-exo Apr 28, 2026
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
129 changes: 129 additions & 0 deletions auth_admin_passkey/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===============================================
Authentification - System Administrator Passkey
===============================================

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

.. |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/license-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/19.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-19-0/server-auth-19-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=19.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:%2019.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 <eugen.don@don-systems.de>
- Alexandre Papin (https://twitter.com/Fenkiou)
- Sylvain LE GAL (https://twitter.com/legalsylvain)
- Dhara Solanki <dhara.solanki@initos.com> (http://www.initos.com)
- Zina Rasoamanana <zina.rasoamanana@acsone.eu>

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/19.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": "19.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,
}
48 changes: 48 additions & 0 deletions auth_admin_passkey/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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 <transbot@odoo-community.org>\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
msgid "Passkey used"
msgstr ""

#. module: auth_admin_passkey
#. odoo-python
#: code:addons/auth_admin_passkey/models/res_users.py:0
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 "المستخدمون"
39 changes: 39 additions & 0 deletions auth_admin_passkey/i18n/auth_admin_passkey.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * auth_admin_passkey
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 19.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
msgid "Passkey used"
msgstr ""

#. module: auth_admin_passkey
#. odoo-python
#: code:addons/auth_admin_passkey/models/res_users.py:0
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 ""
47 changes: 47 additions & 0 deletions auth_admin_passkey/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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
msgid "Passkey used"
msgstr ""

#. module: auth_admin_passkey
#. odoo-python
#: code:addons/auth_admin_passkey/models/res_users.py:0
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"
47 changes: 47 additions & 0 deletions auth_admin_passkey/i18n/da.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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
msgid "Passkey used"
msgstr ""

#. module: auth_admin_passkey
#. odoo-python
#: code:addons/auth_admin_passkey/models/res_users.py:0
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