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

[13.0] [MIG] auth_admin_passkey #551

Closed
wants to merge 70 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
e79532d
[ADD] new module 'auth_admin_passkey' that allow admin user (uid=1) t…
legalsylvain Mar 17, 2014
f6a0962
[IMP] move 'if' test to avoid useless call to check_credentials funct…
legalsylvain Mar 21, 2014
72ab444
[IMP] 'auth_admin_passkey' : Manage the special case where an user ha…
legalsylvain Mar 23, 2014
3a9b0fe
[ADD] 'auth_admin_passkey' : add '.pot' file.
legalsylvain Mar 23, 2014
8f206ab
[IMP] 'auth_admin_passkey' works now indepently from the order of the…
legalsylvain Mar 23, 2014
9166934
[IMP] Emails are now translated.
legalsylvain Mar 23, 2014
8efc9de
[REF] Pep8 and import conventions.
legalsylvain Mar 23, 2014
a90c02c
[FIX] res_config.py : incorrect call. self.pool('xxx') -> self.pool['…
legalsylvain Mar 24, 2014
528f101
[ADD] copyright information in all files.
legalsylvain Mar 31, 2014
e82b29c
[REF] Pep8.
legalsylvain Mar 31, 2014
2c2c049
[REF] change order in an algorithm;
legalsylvain Mar 31, 2014
bd5e007
[FIX] Incorrect import.
legalsylvain Mar 31, 2014
c6fb0e1
[REF] typo.
legalsylvain Mar 31, 2014
4c9a617
[FIX] translation.
legalsylvain Apr 2, 2014
6a4f87a
Launchpad automatic translations update.
Apr 9, 2014
f185b6c
Launchpad automatic translations update.
Apr 17, 2014
06f4720
Launchpad automatic translations update.
Apr 28, 2014
1f274bf
[ADD] Test #6 to test the bug #1319391;
legalsylvain May 14, 2014
c045eee
[FIX] bug #1319391;
legalsylvain May 14, 2014
d5fd11e
[REF] fix comments;
legalsylvain May 14, 2014
81db451
Launchpad automatic translations update.
May 24, 2014
3e2a2b4
[REF] 'auth_admin_passkey': flake8.
legalsylvain Jul 3, 2014
da2b428
move all modules to __unported__ on master branch and set installable…
sbidoul Jul 12, 2014
14c373e
[CHG] auth_admin_passkey: migration to 8.0
anthony-muschang Dec 11, 2014
a260c08
[CHG] auth_admin_passkey: move description to README.md
anthony-muschang Dec 15, 2014
230959a
[CHG] auth_admin_passkey: rename README.md to README.rst
anthony-muschang Dec 15, 2014
c221d79
[IMP] auth_admin_passkey: Moved icon
pedrobaeza Jan 16, 2015
ede1d2d
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
1ae5791
OCA Transbot updated translations from Transifex
oca-transbot Oct 5, 2015
12f65e2
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
4481b65
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
1940df6
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
3d2164d
OCA Transbot updated translations from Transifex
oca-transbot Jan 31, 2016
19e58e6
auth_admin_passkey to new API (#519)
rvalyi Nov 22, 2016
fe80ca3
OCA Transbot updated translations from Transifex
oca-transbot Nov 29, 2016
9c0dc2a
replace OpenERP with Odoo
gurneyalex Jan 10, 2017
75cba01
OCA Transbot updated translations from Transifex
oca-transbot Jan 14, 2017
0e13da5
auth_admin_passkey bug #699
alexis-via Feb 28, 2017
cb0ea40
crash when the options "Send email to ..." on the configuration page …
alexis-via Feb 28, 2017
0d6b376
PEP8 fix
alexis-via Mar 2, 2017
3a62673
OCA Transbot updated translations from Transifex
oca-transbot Mar 4, 2017
ae42d58
auth_admin_passkey: Migrate module for odoo 10
Fenkiou Mar 13, 2017
a89567a
OCA Transbot updated translations from Transifex
oca-transbot Aug 5, 2017
988b3e4
[FIX] auth_admin_passkey: normal users are not able to read the admin…
sebalix Aug 10, 2017
7df372d
OCA Transbot updated translations from Transifex
oca-transbot Dec 2, 2017
0aee1e0
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
12945bc
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
15b112f
[UPD] Update auth_admin_passkey.pot
oca-travis Jun 24, 2018
eedf14b
[FIX] auth_admin_passkey : AccessError sending mail (#1298)
legalsylvain Jun 25, 2018
dffc4cc
Translated using Weblate (Portuguese)
pedrocs-exo Jul 30, 2018
73cf21b
[FIX] Import safe_eval function instead of module.
Jan 30, 2019
08ad91b
[PORT] 12.0: auth_admin_passkey
legalsylvain Aug 9, 2019
dd747de
[FIX] make password stronger to avoid error with password_security + …
legalsylvain Aug 9, 2019
bdafa33
[FIX] rst syntax
legalsylvain Aug 13, 2019
229d51d
[UPD] README.rst
OCA-git-bot Oct 1, 2019
cfc8864
Translated using Weblate (Croatian)
badbole Nov 13, 2019
dbebcaf
Translated using Weblate (Portuguese (Brazil))
Nov 24, 2019
7e2ee00
[UPD] Update auth_admin_passkey.pot
oca-travis Nov 30, 2020
0f5afa1
Update translation files
oca-transbot Nov 30, 2020
4a221b2
[IMP]auth_admin_passkey: New option to block the ability of logging i…
manuelregidor Apr 20, 2021
485a848
[UPD] Update auth_admin_passkey.pot
oca-travis May 4, 2021
cf3f472
[UPD] README.rst
OCA-git-bot May 4, 2021
3c1f518
auth_admin_passkey 12.0.1.1.0
OCA-git-bot May 4, 2021
67c3660
Update translation files
oca-transbot May 4, 2021
194bf8c
Translated using Weblate (French)
ypapouin Oct 15, 2021
8bdd264
ci: apply dotfiles
sbidoul Nov 3, 2022
9c38d41
auth_admin_passkey 12.0.1.1.1
OCA-git-bot Nov 4, 2022
0d68d93
[UPD] README.rst
OCA-git-bot Sep 4, 2023
a4e299a
[IMP] auth_admin_passkey: black, isort, prettier
remihb Sep 6, 2023
4c048f3
[MIG] auth_admin_passkey: Migration to 13.0
remihb Sep 6, 2023
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
124 changes: 124 additions & 0 deletions auth_admin_passkey/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
===============================================
Authentification - System Administrator Passkey
===============================================

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

.. |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/12.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-12-0/server-auth-12-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=12.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

**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_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.


**typical Dev / Test configuration section**

No keys to add.

**typical Production configuration section**


.. code-block:: ini

auth_admin_passkey_password = PASSKEY_PASSWORD
auth_admin_passkey_send_to_user = True
auth_admin_passkey_sysadmin_email = SYSADMIN_PASSWORD
auth_admin_passkey_sysadmin_lang = SYSADMIN_LANG

* To avoid the usage of the admin passkey with some users go to the User record
and check the "Block Admin Passkey" checkbox.

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:%2012.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)
* Manuel Regidor <[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/12.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
16 changes: 16 additions & 0 deletions auth_admin_passkey/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 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": "13.0.1.0.0",
"category": "base",
"author": "GRAP,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/server-auth",
"license": "AGPL-3",
"depends": ["base", "mail"],
"data": ["views/res_users_views.xml"],
"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
#: model:ir.model.fields,field_description:auth_admin_passkey.field_res_users__block_admin_passkey
msgid "Block Admin Passkey"
msgstr ""

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

#. module: auth_admin_passkey
#: code:addons/auth_admin_passkey/models/res_users.py:51
#, 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 "Users"
msgstr "المستخدمون"
45 changes: 45 additions & 0 deletions auth_admin_passkey/i18n/auth_admin_passkey.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * auth_admin_passkey
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.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
#: model:ir.model.fields,field_description:auth_admin_passkey.field_res_users__block_admin_passkey
msgid "Block Admin Passkey"
msgstr ""

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

#. module: auth_admin_passkey
#: code:addons/auth_admin_passkey/models/res_users.py:51
#, 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 "Users"
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
#: model:ir.model.fields,field_description:auth_admin_passkey.field_res_users__block_admin_passkey
msgid "Block Admin Passkey"
msgstr ""

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

#. module: auth_admin_passkey
#: code:addons/auth_admin_passkey/models/res_users.py:51
#, 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 "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
#: model:ir.model.fields,field_description:auth_admin_passkey.field_res_users__block_admin_passkey
msgid "Block Admin Passkey"
msgstr ""

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

#. module: auth_admin_passkey
#: code:addons/auth_admin_passkey/models/res_users.py:51
#, 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 "Users"
msgstr "Brugere"
Loading
Loading