From 455e56305eba634dc9311b3599f12f5ba6821f62 Mon Sep 17 00:00:00 2001 From: Simone Orsi Date: Fri, 24 Sep 2021 11:08:01 +0200 Subject: [PATCH 001/151] Add auth_api_key_group --- auth_api_key_group/README.rst | 89 ++++ auth_api_key_group/__init__.py | 1 + auth_api_key_group/__manifest__.py | 25 + .../i18n/auth_api_key_group.pot | 88 ++++ auth_api_key_group/models/__init__.py | 2 + auth_api_key_group/models/auth_api_key.py | 19 + .../models/auth_api_key_group.py | 23 + auth_api_key_group/readme/CONTRIBUTORS.rst | 1 + auth_api_key_group/readme/DESCRIPTION.rst | 4 + .../security/ir.model.access.csv | 2 + .../static/description/icon.png | Bin 0 -> 9455 bytes .../static/description/index.html | 429 ++++++++++++++++++ auth_api_key_group/tests/__init__.py | 1 + .../tests/test_auth_api_key_group.py | 46 ++ .../views/auth_api_key_group_view.xml | 44 ++ .../views/auth_api_key_view.xml | 12 + 16 files changed, 786 insertions(+) create mode 100644 auth_api_key_group/README.rst create mode 100644 auth_api_key_group/__init__.py create mode 100644 auth_api_key_group/__manifest__.py create mode 100644 auth_api_key_group/i18n/auth_api_key_group.pot create mode 100644 auth_api_key_group/models/__init__.py create mode 100644 auth_api_key_group/models/auth_api_key.py create mode 100644 auth_api_key_group/models/auth_api_key_group.py create mode 100644 auth_api_key_group/readme/CONTRIBUTORS.rst create mode 100644 auth_api_key_group/readme/DESCRIPTION.rst create mode 100644 auth_api_key_group/security/ir.model.access.csv create mode 100644 auth_api_key_group/static/description/icon.png create mode 100644 auth_api_key_group/static/description/index.html create mode 100644 auth_api_key_group/tests/__init__.py create mode 100644 auth_api_key_group/tests/test_auth_api_key_group.py create mode 100644 auth_api_key_group/views/auth_api_key_group_view.xml create mode 100644 auth_api_key_group/views/auth_api_key_view.xml diff --git a/auth_api_key_group/README.rst b/auth_api_key_group/README.rst new file mode 100644 index 0000000000..a2d8c22c6a --- /dev/null +++ b/auth_api_key_group/README.rst @@ -0,0 +1,89 @@ +================== +Auth API key group +================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png + :target: https://odoo-community.org/page/development-status + :alt: Alpha +.. |badge2| image:: https://img.shields.io/badge/licence-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 + :target: https://github.com/OCA/server-auth/tree/14.0/auth_api_key_group + :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-14-0/server-auth-14-0-auth_api_key_group + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/251/14.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +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. + +.. IMPORTANT:: + This is an alpha version, the data model and design can change at any time without warning. + Only for development or testing purpose, do not use in production. + `More details on development status `_ + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Camptcamp + +Contributors +~~~~~~~~~~~~ + +* Simone Orsi + +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. + +.. |maintainer-simahawk| image:: https://github.com/simahawk.png?size=40px + :target: https://github.com/simahawk + :alt: simahawk + +Current `maintainer `__: + +|maintainer-simahawk| + +This module is part of the `OCA/server-auth `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/auth_api_key_group/__init__.py b/auth_api_key_group/__init__.py new file mode 100644 index 0000000000..0650744f6b --- /dev/null +++ b/auth_api_key_group/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/auth_api_key_group/__manifest__.py b/auth_api_key_group/__manifest__.py new file mode 100644 index 0000000000..7def149530 --- /dev/null +++ b/auth_api_key_group/__manifest__.py @@ -0,0 +1,25 @@ +# Copyright 2021 Camptcamp SA +# @author: Simone Orsi +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + +{ + "name": "Auth API key group", + "summary": """ +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. + """, + "version": "14.0.1.0.1", + "development_status": "Alpha", + "license": "LGPL-3", + "website": "https://github.com/OCA/server-auth", + "author": "Camptcamp,Odoo Community Association (OCA)", + "maintainers": ["simahawk"], + "depends": ["auth_api_key"], + "data": [ + "security/ir.model.access.csv", + "views/auth_api_key_view.xml", + "views/auth_api_key_group_view.xml", + ], +} diff --git a/auth_api_key_group/i18n/auth_api_key_group.pot b/auth_api_key_group/i18n/auth_api_key_group.pot new file mode 100644 index 0000000000..60028aefa3 --- /dev/null +++ b/auth_api_key_group/i18n/auth_api_key_group.pot @@ -0,0 +1,88 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * auth_api_key_group +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.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_api_key_group +#: model:ir.model,name:auth_api_key_group.model_auth_api_key +msgid "API Key" +msgstr "" + +#. module: auth_api_key_group +#: model:ir.model,name:auth_api_key_group.model_auth_api_key_group +msgid "API Key auth group" +msgstr "" + +#. module: auth_api_key_group +#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key_group__auth_api_key_ids +msgid "API Keys" +msgstr "" + +#. module: auth_api_key_group +#: model:ir.actions.act_window,name:auth_api_key_group.auth_api_key_group_act_window +#: model:ir.ui.menu,name:auth_api_key_group.auth_api_key_group_menu +msgid "Auth Api Key Groups" +msgstr "" + +#. module: auth_api_key_group +#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key__auth_api_key_group_ids +msgid "Auth Groups" +msgstr "" + +#. module: auth_api_key_group +#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key_group__code +msgid "Code" +msgstr "" + +#. module: auth_api_key_group +#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key_group__create_uid +msgid "Created by" +msgstr "" + +#. module: auth_api_key_group +#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key_group__create_date +msgid "Created on" +msgstr "" + +#. module: auth_api_key_group +#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key__display_name +#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key_group__display_name +msgid "Display Name" +msgstr "" + +#. module: auth_api_key_group +#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key__id +#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key_group__id +msgid "ID" +msgstr "" + +#. module: auth_api_key_group +#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key____last_update +#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key_group____last_update +msgid "Last Modified on" +msgstr "" + +#. module: auth_api_key_group +#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key_group__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: auth_api_key_group +#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key_group__write_date +msgid "Last Updated on" +msgstr "" + +#. module: auth_api_key_group +#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key_group__name +msgid "Name" +msgstr "" diff --git a/auth_api_key_group/models/__init__.py b/auth_api_key_group/models/__init__.py new file mode 100644 index 0000000000..4f2457794f --- /dev/null +++ b/auth_api_key_group/models/__init__.py @@ -0,0 +1,2 @@ +from . import auth_api_key +from . import auth_api_key_group diff --git a/auth_api_key_group/models/auth_api_key.py b/auth_api_key_group/models/auth_api_key.py new file mode 100644 index 0000000000..661e3c1a41 --- /dev/null +++ b/auth_api_key_group/models/auth_api_key.py @@ -0,0 +1,19 @@ +# Copyright 2021 Camptcamp SA +# @author: Simone Orsi +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + + +from odoo import fields, models + + +class AuthApiKey(models.Model): + + _inherit = "auth.api.key" + + auth_api_key_group_ids = fields.Many2many( + comodel_name="auth.api.key.group", + relation="auth_api_key_group_rel", + column1="key_id", + column2="group_id", + string="Auth Groups", + ) diff --git a/auth_api_key_group/models/auth_api_key_group.py b/auth_api_key_group/models/auth_api_key_group.py new file mode 100644 index 0000000000..28f34f5e85 --- /dev/null +++ b/auth_api_key_group/models/auth_api_key_group.py @@ -0,0 +1,23 @@ +# Copyright 2021 Camptcamp SA +# @author: Simone Orsi +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + + +from odoo import fields, models + + +class AuthApiKeyGroup(models.Model): + """Group API keys together.""" + + _name = "auth.api.key.group" + _description = "API Key auth group" + + name = fields.Char(required=True) + code = fields.Char(required=True) + auth_api_key_ids = fields.Many2many( + comodel_name="auth.api.key", + relation="auth_api_key_group_rel", + column1="group_id", + column2="key_id", + string="API Keys", + ) diff --git a/auth_api_key_group/readme/CONTRIBUTORS.rst b/auth_api_key_group/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..f1c71bce18 --- /dev/null +++ b/auth_api_key_group/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Simone Orsi diff --git a/auth_api_key_group/readme/DESCRIPTION.rst b/auth_api_key_group/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..1becef6070 --- /dev/null +++ b/auth_api_key_group/readme/DESCRIPTION.rst @@ -0,0 +1,4 @@ +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. diff --git a/auth_api_key_group/security/ir.model.access.csv b/auth_api_key_group/security/ir.model.access.csv new file mode 100644 index 0000000000..d245cf24cf --- /dev/null +++ b/auth_api_key_group/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_auth_api_key_group,access_auth_api_key_group,model_auth_api_key_group,base.group_system,1,1,1,1 diff --git a/auth_api_key_group/static/description/icon.png b/auth_api_key_group/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~! zVpnB`o+K7|Al`Q_U;eD$B zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__ zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_ zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA~0H(xz{=FhLB@(1&qHA5EJw1>>=%q2f&^X>IQ{!GJ4e9U z&KlB)z(84HmNgm2hg2C0>WM{E(DdPr+EeU_N@57;PC2&DmGFW_9kP&%?X4}+xWi)( z;)z%wI5>D4a*5XwD)P--sPkoY(a~WBw;E~AW`Yue4kFa^LM3X`8x|}ZUeMnqr}>kH zG%WWW>3ml$Yez?i%)2pbKPI7?5o?hydokgQyZsNEr{a|mLdt;X2TX(#B1j35xPnPW z*bMSSOauW>o;*=kO8ojw91VX!qoOQb)zHJ!odWB}d+*K?#sY_jqPdg{Sm2HdYzdEx zOGVPhVRTGPtv0o}RfVP;Nd(|CB)I;*t&QO8h zFfekr30S!-LHmV_Su-W+rEwYXJ^;6&3|L$mMC8*bQptyOo9;>Qb9Q9`ySe3%V$A*9 zeKEe+b0{#KWGp$F+tga)0RtI)nhMa-K@JS}2krK~n8vJ=Ngm?R!9G<~RyuU0d?nz# z-5EK$o(!F?hmX*2Yt6+coY`6jGbb7tF#6nHA zuKk=GGJ;ZwON1iAfG$E#Y7MnZVmrY|j0eVI(DN_MNFJmyZ|;w4tf@=CCDZ#5N_0K= z$;R~bbk?}TpfDjfB&aiQ$VA}s?P}xPERJG{kxk5~R`iRS(SK5d+Xs9swCozZISbnS zk!)I0>t=A<-^z(cmSFz3=jZ23u13X><0b)P)^1T_))Kr`e!-pb#q&J*Q`p+B6la%C zuVl&0duN<;uOsB3%T9Fp8t{ED108<+W(nOZd?gDnfNBC3>M8WE61$So|P zVvqH0SNtDTcsUdzaMDpT=Ty0pDHHNL@Z0w$Y`XO z2M-_r1S+GaH%pz#Uy0*w$Vdl=X=rQXEzO}d6J^R6zjM1u&c9vYLvLp?W7w(?np9x1 zE_0JSAJCPB%i7p*Wvg)pn5T`8k3-uR?*NT|J`eS#_#54p>!p(mLDvmc-3o0mX*mp_ zN*AeS<>#^-{S%W<*mz^!X$w_2dHWpcJ6^j64qFBft-o}o_Vx80o0>}Du;>kLts;$8 zC`7q$QI(dKYG`Wa8#wl@V4jVWBRGQ@1dr-hstpQL)Tl+aqVpGpbSfN>5i&QMXfiZ> zaA?T1VGe?rpQ@;+pkrVdd{klI&jVS@I5_iz!=UMpTsa~mBga?1r}aRBm1WS;TT*s0f0lY=JBl66Upy)-k4J}lh=P^8(SXk~0xW=T9v*B|gzIhN z>qsO7dFd~mgxAy4V?&)=5ieYq?zi?ZEoj)&2o)RLy=@hbCRcfT5jigwtQGE{L*8<@Yd{zg;CsL5mvzfDY}P-wos_6PfprFVaeqNE%h zKZhLtcQld;ZD+>=nqN~>GvROfueSzJD&BE*}XfU|H&(FssBqY=hPCt`d zH?@s2>I(|;fcW&YM6#V#!kUIP8$Nkdh0A(bEVj``-AAyYgwY~jB zT|I7Bf@%;7aL7Wf4dZ%VqF$eiaC38OV6oy3Z#TER2G+fOCd9Iaoy6aLYbPTN{XRPz z;U!V|vBf%H!}52L2gH_+j;`bTcQRXB+y9onc^wLm5wi3-Be}U>k_u>2Eg$=k!(l@I zcCg+flakT2Nej3i0yn+g+}%NYb?ta;R?(g5SnwsQ49U8Wng8d|{B+lyRcEDvR3+`O{zfmrmvFrL6acVP%yG98X zo&+VBg@px@i)%o?dG(`T;n*$S5*rnyiR#=wW}}GsAcfyQpE|>a{=$Hjg=-*_K;UtD z#z-)AXwSRY?OPefw^iI+ z)AXz#PfEjlwTes|_{sB?4(O@fg0AJ^g8gP}ex9Ucf*@_^J(s_5jJV}c)s$`Myn|Kd z$6>}#q^n{4vN@+Os$m7KV+`}c%4)4pv@06af4-x5#wj!KKb%caK{A&Y#Rfs z-po?Dcb1({W=6FKIUirH&(yg=*6aLCekcKwyfK^JN5{wcA3nhO(o}SK#!CINhI`-I z1)6&n7O&ZmyFMuNwvEic#IiOAwNkR=u5it{B9n2sAJV5pNhar=j5`*N!Na;c7g!l$ z3aYBqUkqqTJ=Re-;)s!EOeij=7SQZ3Hq}ZRds%IM*PtM$wV z@;rlc*NRK7i3y5BETSKuumEN`Xu_8GP1Ri=OKQ$@I^ko8>H6)4rjiG5{VBM>B|%`&&s^)jS|-_95&yc=GqjNo{zFkw%%HHhS~e=s zD#sfS+-?*t|J!+ozP6KvtOl!R)@@-z24}`9{QaVLD^9VCSR2b`b!KC#o;Ki<+wXB6 zx3&O0LOWcg4&rv4QG0)4yb}7BFSEg~=IR5#ZRj8kg}dS7_V&^%#Do==#`u zpy6{ox?jWuR(;pg+f@mT>#HGWHAJRRDDDv~@(IDw&R>9643kK#HN`!1vBJHnC+RM&yIh8{gG2q zA%e*U3|N0XSRa~oX-3EAneep)@{h2vvd3Xvy$7og(sayr@95+e6~Xvi1tUqnIxoIH zVWo*OwYElb#uyW{Imam6f2rGbjR!Y3`#gPqkv57dB6K^wRGxc9B(t|aYDGS=m$&S!NmCtrMMaUg(c zc2qC=2Z`EEFMW-me5B)24AqF*bV5Dr-M5ig(l-WPS%CgaPzs6p_gnCIvTJ=Y<6!gT zVt@AfYCzjjsMEGi=rDQHo0yc;HqoRNnNFeWZgcm?f;cp(6CNylj36DoL(?TS7eU#+ z7&mfr#y))+CJOXQKUMZ7QIdS9@#-}7y2K1{8)cCt0~-X0O!O?Qx#E4Og+;A2SjalQ zs7r?qn0H044=sDN$SRG$arw~n=+T_DNdSrarmu)V6@|?1-ZB#hRn`uilTGPJ@fqEy zGt(f0B+^JDP&f=r{#Y_wi#AVDf-y!RIXU^0jXsFpf>=Ji*TeqSY!H~AMbJdCGLhC) zn7Rx+sXw6uYj;WRYrLd^5IZq@6JI1C^YkgnedZEYy<&4(z%Q$5yv#Boo{AH8n$a zhb4Y3PWdr269&?V%uI$xMcUrMzl=;w<_nm*qr=c3Rl@i5wWB;e-`t7D&c-mcQl7x! zZWB`UGcw=Y2=}~wzrfLx=uet<;m3~=8I~ZRuzvMQUQdr+yTV|ATf1Uuomr__nDf=X zZ3WYJtHp_ri(}SQAPjv+Y+0=fH4krOP@S&=zZ-t1jW1o@}z;xk8 z(Nz1co&El^HK^NrhVHa-_;&88vTU>_J33=%{if;BEY*J#1n59=07jrGQ#IP>@u#3A z;!q+E1Rj3ZJ+!4bq9F8PXJ@yMgZL;>&gYA0%_Kbi8?S=XGM~dnQZQ!yBSgcZhY96H zrWnU;k)qy`rX&&xlDyA%(a1Hhi5CWkmg(`Gb%m(HKi-7Z!LKGRP_B8@`7&hdDy5n= z`OIxqxiVfX@OX1p(mQu>0Ai*v_cTMiw4qRt3~NBvr9oBy0)r>w3p~V0SCm=An6@3n)>@z!|o-$HvDK z|3D2ZMJkLE5loMKl6R^ez@Zz%S$&mbeoqH5`Bb){Ei21q&VP)hWS2tjShfFtGE+$z zzCR$P#uktu+#!w)cX!lWN1XU%K-r=s{|j?)Akf@q#3b#{6cZCuJ~gCxuMXRmI$nGtnH+-h z+GEi!*X=AP<|fG`1>MBdTb?28JYc=fGvAi2I<$B(rs$;eoJCyR6_bc~p!XR@O-+sD z=eH`-ye})I5ic1eL~TDmtfJ|8`0VJ*Yr=hNCd)G1p2MMz4C3^Mj?7;!w|Ly%JqmuW zlIEW^Ft%z?*|fpXda>Jr^1noFZEwFgVV%|*XhH@acv8rdGxeEX{M$(vG{Zw+x(ei@ zmfXb22}8-?Fi`vo-YVrTH*C?a8%M=Hv9MqVH7H^J$KsD?>!SFZ;ZsvnHr_gn=7acz z#W?0eCdVhVMWN12VV^$>WlQ?f;P^{(&pYTops|btm6aj>_Uz+hqpGwB)vWp0Cf5y< zft8-je~nn?W11plq}N)4A{l8I7$!ks_x$PXW-2XaRFswX_BnF{R#6YIwMhAgd5F9X zGmwdadS6(a^fjHtXg8=l?Rc0Sm%hk6E9!5cLVloEy4eh(=FwgP`)~I^5~pBEWo+F6 zSf2ncyMurJN91#cJTy_u8Y}@%!bq1RkGC~-bV@SXRd4F{R-*V`bS+6;W5vZ(&+I<9$;-V|eNfLa5n-6% z2(}&uGRF;p92eS*sE*oR$@pexaqr*meB)VhmIg@h{uzkk$9~qh#cHhw#>O%)b@+(| z^IQgqzuj~Sk(J;swEM-3TrJAPCq9k^^^`q{IItKBRXYe}e0Tdr=Huf7da3$l4PdpwWDop%^}n;dD#K4s#DYA8SHZ z&1!riV4W4R7R#C))JH1~axJ)RYnM$$lIR%6fIVA@zV{XVyx}C+a-Dt8Y9M)^KU0+H zR4IUb2CJ{Hg>CuaXtD50jB(_Tcx=Z$^WYu2u5kubqmwp%drJ6 z?Fo40g!Qd<-l=TQxqHEOuPX0;^z7iX?Ke^a%XT<13TA^5`4Xcw6D@Ur&VT&CUe0d} z1GjOVF1^L@>O)l@?bD~$wzgf(nxX1OGD8fEV?TdJcZc2KoUe|oP1#=$$7ee|xbY)A zDZq+cuTpc(fFdj^=!;{k03C69lMQ(|>uhRfRu%+!k&YOi-3|1QKB z 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 Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/auth_api_key_group/static/description/index.html b/auth_api_key_group/static/description/index.html new file mode 100644 index 0000000000..17fb24a6ee --- /dev/null +++ b/auth_api_key_group/static/description/index.html @@ -0,0 +1,429 @@ + + + + + + +Auth API key group + + + +
+

Auth API key group

+ + +

Alpha License: LGPL-3 OCA/server-auth Translate me on Weblate Try me on Runbot

+

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.

+
+

Important

+

This is an alpha version, the data model and design can change at any time without warning. +Only for development or testing purpose, do not use in production. +More details on development status

+
+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Camptcamp
  • +
+
+ +
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

Current maintainer:

+

simahawk

+

This module is part of the OCA/server-auth project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/auth_api_key_group/tests/__init__.py b/auth_api_key_group/tests/__init__.py new file mode 100644 index 0000000000..f831d70c99 --- /dev/null +++ b/auth_api_key_group/tests/__init__.py @@ -0,0 +1 @@ +from . import test_auth_api_key_group diff --git a/auth_api_key_group/tests/test_auth_api_key_group.py b/auth_api_key_group/tests/test_auth_api_key_group.py new file mode 100644 index 0000000000..bd39230f65 --- /dev/null +++ b/auth_api_key_group/tests/test_auth_api_key_group.py @@ -0,0 +1,46 @@ +# Copyright 2021 Camptcamp SA +# @author: Simone Orsi +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + + +from odoo.tests.common import SavepointCase + + +class TestAuthApiKey(SavepointCase): + @classmethod + def setUpClass(cls, *args, **kwargs): + super().setUpClass(*args, **kwargs) + cls.AuthApiKey = cls.env["auth.api.key"] + cls.AuthApiKeyGroup = cls.env["auth.api.key.group"] + cls.demo_user = cls.env.ref("base.user_demo") + cls.api_key1 = cls.AuthApiKey.create( + {"name": "One", "user_id": cls.demo_user.id, "key": "one"} + ) + cls.api_key2 = cls.AuthApiKey.create( + {"name": "Two", "user_id": cls.demo_user.id, "key": "two"} + ) + cls.api_key3 = cls.AuthApiKey.create( + {"name": "Three", "user_id": cls.demo_user.id, "key": "three"} + ) + cls.api_key_group1 = cls.AuthApiKeyGroup.create( + { + "name": "G One", + "code": "g-one", + "auth_api_key_ids": [(6, 0, (cls.api_key1 + cls.api_key2).ids)], + } + ) + cls.api_key_group2 = cls.AuthApiKeyGroup.create( + { + "name": "G Two", + "code": "g-two", + "auth_api_key_ids": [(6, 0, cls.api_key3.ids)], + } + ) + + def test_relations(self): + self.assertIn(self.api_key_group1, self.api_key1.auth_api_key_group_ids) + self.assertIn(self.api_key_group1, self.api_key2.auth_api_key_group_ids) + self.assertNotIn(self.api_key_group1, self.api_key3.auth_api_key_group_ids) + self.assertIn(self.api_key_group2, self.api_key3.auth_api_key_group_ids) + self.assertNotIn(self.api_key_group2, self.api_key1.auth_api_key_group_ids) + self.assertNotIn(self.api_key_group2, self.api_key1.auth_api_key_group_ids) diff --git a/auth_api_key_group/views/auth_api_key_group_view.xml b/auth_api_key_group/views/auth_api_key_group_view.xml new file mode 100644 index 0000000000..267284d851 --- /dev/null +++ b/auth_api_key_group/views/auth_api_key_group_view.xml @@ -0,0 +1,44 @@ + + + + auth.api.key.group.form (in auth_api_key_group) + auth.api.key.group + +
+ + +
+
+
+ + auth.api.key.group.tree (in auth_api_key_group) + auth.api.key.group + + + + + + + + + Auth Api Key Groups + auth.api.key.group + tree,form + [] + {} + + + Auth Api Key Groups + + + + +
diff --git a/auth_api_key_group/views/auth_api_key_view.xml b/auth_api_key_group/views/auth_api_key_view.xml new file mode 100644 index 0000000000..a7c7192f29 --- /dev/null +++ b/auth_api_key_group/views/auth_api_key_view.xml @@ -0,0 +1,12 @@ + + + + auth.api.key + + + + + + + + From c370332dfdb9384e45edf5f5f046fd95cb23b63a Mon Sep 17 00:00:00 2001 From: Maksym Yankin Date: Tue, 30 Nov 2021 18:48:48 +0200 Subject: [PATCH 002/151] [MIG] auth_api_key_group: Migration to 15.0 --- auth_api_key_group/README.rst | 10 +++++----- auth_api_key_group/__manifest__.py | 2 +- auth_api_key_group/i18n/auth_api_key_group.pot | 2 +- auth_api_key_group/static/description/index.html | 6 +++--- auth_api_key_group/tests/test_auth_api_key_group.py | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/auth_api_key_group/README.rst b/auth_api_key_group/README.rst index a2d8c22c6a..2d0181b8ab 100644 --- a/auth_api_key_group/README.rst +++ b/auth_api_key_group/README.rst @@ -14,13 +14,13 @@ Auth API key group :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 - :target: https://github.com/OCA/server-auth/tree/14.0/auth_api_key_group + :target: https://github.com/OCA/server-auth/tree/15.0/auth_api_key_group :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-14-0/server-auth-14-0-auth_api_key_group + :target: https://translation.odoo-community.org/projects/server-auth-15-0/server-auth-15-0-auth_api_key_group :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/251/14.0 + :target: https://runbot.odoo-community.org/runbot/251/15.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -46,7 +46,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -84,6 +84,6 @@ Current `maintainer `__: |maintainer-simahawk| -This module is part of the `OCA/server-auth `_ project on GitHub. +This module is part of the `OCA/server-auth `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/auth_api_key_group/__manifest__.py b/auth_api_key_group/__manifest__.py index 7def149530..97df614ef3 100644 --- a/auth_api_key_group/__manifest__.py +++ b/auth_api_key_group/__manifest__.py @@ -10,7 +10,7 @@ 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. """, - "version": "14.0.1.0.1", + "version": "15.0.1.0.0", "development_status": "Alpha", "license": "LGPL-3", "website": "https://github.com/OCA/server-auth", diff --git a/auth_api_key_group/i18n/auth_api_key_group.pot b/auth_api_key_group/i18n/auth_api_key_group.pot index 60028aefa3..95ba32353b 100644 --- a/auth_api_key_group/i18n/auth_api_key_group.pot +++ b/auth_api_key_group/i18n/auth_api_key_group.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" diff --git a/auth_api_key_group/static/description/index.html b/auth_api_key_group/static/description/index.html index 17fb24a6ee..937b94ec67 100644 --- a/auth_api_key_group/static/description/index.html +++ b/auth_api_key_group/static/description/index.html @@ -367,7 +367,7 @@

Auth API key group

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Alpha License: LGPL-3 OCA/server-auth Translate me on Weblate Try me on Runbot

+

Alpha License: LGPL-3 OCA/server-auth Translate me on Weblate Try me on Runbot

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.

@@ -394,7 +394,7 @@

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

+feedback.

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

@@ -420,7 +420,7 @@

Maintainers

promote its widespread use.

Current maintainer:

simahawk

-

This module is part of the OCA/server-auth project on GitHub.

+

This module is part of the OCA/server-auth project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/auth_api_key_group/tests/test_auth_api_key_group.py b/auth_api_key_group/tests/test_auth_api_key_group.py index bd39230f65..75581bbf16 100644 --- a/auth_api_key_group/tests/test_auth_api_key_group.py +++ b/auth_api_key_group/tests/test_auth_api_key_group.py @@ -3,10 +3,10 @@ # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo.tests.common import SavepointCase +from odoo.tests.common import TransactionCase -class TestAuthApiKey(SavepointCase): +class TestAuthApiKey(TransactionCase): @classmethod def setUpClass(cls, *args, **kwargs): super().setUpClass(*args, **kwargs) From 7c69993ed2789043aa8c822266f8716b62d1cfd4 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Thu, 2 Dec 2021 06:29:36 +0000 Subject: [PATCH 003/151] [UPD] Update auth_api_key_group.pot --- auth_api_key_group/i18n/auth_api_key_group.pot | 3 --- 1 file changed, 3 deletions(-) diff --git a/auth_api_key_group/i18n/auth_api_key_group.pot b/auth_api_key_group/i18n/auth_api_key_group.pot index 95ba32353b..05a8812a79 100644 --- a/auth_api_key_group/i18n/auth_api_key_group.pot +++ b/auth_api_key_group/i18n/auth_api_key_group.pot @@ -55,19 +55,16 @@ msgid "Created on" msgstr "" #. module: auth_api_key_group -#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key__display_name #: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key_group__display_name msgid "Display Name" msgstr "" #. module: auth_api_key_group -#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key__id #: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key_group__id msgid "ID" msgstr "" #. module: auth_api_key_group -#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key____last_update #: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key_group____last_update msgid "Last Modified on" msgstr "" From 68309b60b530d23e6aee4ac40a1013e50d62fb86 Mon Sep 17 00:00:00 2001 From: sbejaoui Date: Tue, 1 Aug 2023 21:38:34 +0200 Subject: [PATCH 004/151] [16.0][MIG] - auth_api_key_group --- auth_api_key_group/__manifest__.py | 3 +-- setup/auth_api_key_group/odoo/addons/auth_api_key_group | 1 + setup/auth_api_key_group/setup.py | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 120000 setup/auth_api_key_group/odoo/addons/auth_api_key_group create mode 100644 setup/auth_api_key_group/setup.py diff --git a/auth_api_key_group/__manifest__.py b/auth_api_key_group/__manifest__.py index 97df614ef3..8ac634aad9 100644 --- a/auth_api_key_group/__manifest__.py +++ b/auth_api_key_group/__manifest__.py @@ -10,8 +10,7 @@ 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. """, - "version": "15.0.1.0.0", - "development_status": "Alpha", + "version": "16.0.1.0.0", "license": "LGPL-3", "website": "https://github.com/OCA/server-auth", "author": "Camptcamp,Odoo Community Association (OCA)", diff --git a/setup/auth_api_key_group/odoo/addons/auth_api_key_group b/setup/auth_api_key_group/odoo/addons/auth_api_key_group new file mode 120000 index 0000000000..4cda5ca1f9 --- /dev/null +++ b/setup/auth_api_key_group/odoo/addons/auth_api_key_group @@ -0,0 +1 @@ +../../../../auth_api_key_group \ No newline at end of file diff --git a/setup/auth_api_key_group/setup.py b/setup/auth_api_key_group/setup.py new file mode 100644 index 0000000000..28c57bb640 --- /dev/null +++ b/setup/auth_api_key_group/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) From 4d73996fc2102d08433c3c73d7d557544171395f Mon Sep 17 00:00:00 2001 From: mymage Date: Wed, 3 Jan 2024 12:20:40 +0000 Subject: [PATCH 005/151] Translated using Weblate (Italian) Currently translated at 100.0% (3 of 3 strings) Translation: server-auth-16.0/server-auth-16.0-auth_admin_passkey Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_admin_passkey/it/ --- auth_admin_passkey/i18n/it.po | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/auth_admin_passkey/i18n/it.po b/auth_admin_passkey/i18n/it.po index 23262c5932..12d8de629a 100644 --- a/auth_admin_passkey/i18n/it.po +++ b/auth_admin_passkey/i18n/it.po @@ -9,15 +9,15 @@ msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-08-01 02:43+0000\n" -"PO-Revision-Date: 2022-02-21 12:17+0000\n" -"Last-Translator: Simone Rubino \n" +"PO-Revision-Date: 2024-01-03 14:33+0000\n" +"Last-Translator: mymage \n" "Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\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.3.2\n" +"X-Generator: Weblate 4.17\n" #. module: auth_admin_passkey #. odoo-python @@ -40,11 +40,20 @@ msgid "" "- Login date : %(login_date)s\n" "\n" msgstr "" +"L'utente amministratore di sistemaha usato la sua passkey per accedere con " +"%(login)s.\n" +"\n" +"\n" +"\n" +"Informazioni tecniche di seguito: \n" +"\n" +"- Data accesso : %(login_date)s\n" +"\n" #. module: auth_admin_passkey #: model:ir.model,name:auth_admin_passkey.model_res_users msgid "User" -msgstr "" +msgstr "Utente" #, python-format #~ msgid "
User with login '%s' has the same password as you.
" From de1c0505e33364517340b5e42caa3d05e8b9da6f Mon Sep 17 00:00:00 2001 From: mymage Date: Wed, 3 Jan 2024 12:16:56 +0000 Subject: [PATCH 006/151] Translated using Weblate (Italian) Currently translated at 100.0% (4 of 4 strings) Translation: server-auth-16.0/server-auth-16.0-auth_signup_verify_email Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_signup_verify_email/it/ --- auth_signup_verify_email/i18n/it.po | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/auth_signup_verify_email/i18n/it.po b/auth_signup_verify_email/i18n/it.po index 691201a879..78f1ba46f5 100644 --- a/auth_signup_verify_email/i18n/it.po +++ b/auth_signup_verify_email/i18n/it.po @@ -9,22 +9,23 @@ msgstr "" "Project-Id-Version: server-tools (9.0)\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-06-09 12:31+0000\n" -"PO-Revision-Date: 2016-05-31 14:47+0000\n" -"Last-Translator: OCA Transbot \n" +"PO-Revision-Date: 2024-01-03 14:33+0000\n" +"Last-Translator: mymage \n" "Language-Team: Italian (http://www.transifex.com/oca/OCA-server-tools-9-0/" "language/it/)\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" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" #. module: auth_signup_verify_email #. odoo-python #: code:addons/auth_signup_verify_email/controllers/main.py:0 #, python-format msgid "Another user is already registered using this email address." -msgstr "" +msgstr "Un altro utente che usa questa e-mail è già registrato." #. module: auth_signup_verify_email #. odoo-python From 091983c582ff3dea2919e486c1ee1207c9a0d958 Mon Sep 17 00:00:00 2001 From: mymage Date: Wed, 3 Jan 2024 12:22:16 +0000 Subject: [PATCH 007/151] Translated using Weblate (Italian) Currently translated at 100.0% (4 of 4 strings) Translation: server-auth-16.0/server-auth-16.0-auth_user_case_insensitive Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_user_case_insensitive/it/ --- auth_user_case_insensitive/i18n/it.po | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/auth_user_case_insensitive/i18n/it.po b/auth_user_case_insensitive/i18n/it.po index 2f7bafd478..58bc2aeb1f 100644 --- a/auth_user_case_insensitive/i18n/it.po +++ b/auth_user_case_insensitive/i18n/it.po @@ -9,36 +9,37 @@ msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-05-17 21:08+0000\n" -"PO-Revision-Date: 2017-05-17 21:08+0000\n" -"Last-Translator: OCA Transbot , 2017\n" +"PO-Revision-Date: 2024-01-03 14:33+0000\n" +"Last-Translator: mymage \n" "Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\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" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" #. module: auth_user_case_insensitive #. odoo-python #: code:addons/auth_user_case_insensitive/hooks.py:0 #, python-format msgid "Conflicting user logins exist for `%s`" -msgstr "" +msgstr "Esiste un conflitto di accessi per l'utente '%s'" #. module: auth_user_case_insensitive #: model:ir.model.fields,field_description:auth_user_case_insensitive.field_res_users__login msgid "Login" -msgstr "" +msgstr "Login" #. module: auth_user_case_insensitive #: model:ir.model.fields,help:auth_user_case_insensitive.field_res_users__login msgid "Used to log into the system. Case insensitive." -msgstr "" +msgstr "Utilizzato per l'accesso al sistema. Insensibile a maiuscole/minuscole." #. module: auth_user_case_insensitive #: model:ir.model,name:auth_user_case_insensitive.model_res_users msgid "User" -msgstr "" +msgstr "Utente" #~ msgid "Users" #~ msgstr "Utenti" From 75ec1b6396407f009ba796952b7f97c6e1e8bc0d Mon Sep 17 00:00:00 2001 From: mymage Date: Wed, 3 Jan 2024 12:17:06 +0000 Subject: [PATCH 008/151] Translated using Weblate (Italian) Currently translated at 100.0% (3 of 3 strings) Translation: server-auth-16.0/server-auth-16.0-auth_session_timeout Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_session_timeout/it/ --- auth_session_timeout/i18n/it.po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/auth_session_timeout/i18n/it.po b/auth_session_timeout/i18n/it.po index c193ce4ccf..7691d541ec 100644 --- a/auth_session_timeout/i18n/it.po +++ b/auth_session_timeout/i18n/it.po @@ -10,15 +10,15 @@ msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-01-06 02:24+0000\n" -"PO-Revision-Date: 2023-03-07 19:36+0000\n" -"Last-Translator: Francesco Foresti \n" +"PO-Revision-Date: 2024-01-03 14:33+0000\n" +"Last-Translator: mymage \n" "Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\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.14.1\n" +"X-Generator: Weblate 4.17\n" #. module: auth_session_timeout #: model:ir.model,name:auth_session_timeout.model_ir_http @@ -33,7 +33,7 @@ msgstr "Parametro di sistema" #. module: auth_session_timeout #: model:ir.model,name:auth_session_timeout.model_res_users msgid "User" -msgstr "" +msgstr "Utente" #~ msgid "Users" #~ msgstr "Utenti" From 04e3f5b9c75c90e51ce2a109066bfbe1eb522a91 Mon Sep 17 00:00:00 2001 From: mymage Date: Wed, 3 Jan 2024 12:16:31 +0000 Subject: [PATCH 009/151] Translated using Weblate (Italian) Currently translated at 100.0% (26 of 26 strings) Translation: server-auth-16.0/server-auth-16.0-users_ldap_groups Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-users_ldap_groups/it/ --- users_ldap_groups/i18n/it.po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/users_ldap_groups/i18n/it.po b/users_ldap_groups/i18n/it.po index cec08af062..897502b939 100644 --- a/users_ldap_groups/i18n/it.po +++ b/users_ldap_groups/i18n/it.po @@ -6,15 +6,15 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2023-01-18 13:45+0000\n" -"Last-Translator: Francesco Foresti \n" +"PO-Revision-Date: 2024-01-03 14:33+0000\n" +"Last-Translator: mymage \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.14.1\n" +"X-Generator: Weblate 4.17\n" #. module: users_ldap_groups #: model:ir.model,name:users_ldap_groups.model_res_company_ldap @@ -163,7 +163,7 @@ msgstr "" #. module: users_ldap_groups #: model:ir.model,name:users_ldap_groups.model_res_users msgid "User" -msgstr "" +msgstr "Utente" #. module: users_ldap_groups #: model:ir.model.fields,field_description:users_ldap_groups.field_res_company_ldap_group_mapping__value From cedfbe60e2cb2ec33e88c6530c3b39d23f054ef3 Mon Sep 17 00:00:00 2001 From: mymage Date: Wed, 3 Jan 2024 12:26:21 +0000 Subject: [PATCH 010/151] Translated using Weblate (Italian) Currently translated at 100.0% (64 of 64 strings) Translation: server-auth-16.0/server-auth-16.0-auth_jwt Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_jwt/it/ --- auth_jwt/i18n/it.po | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/auth_jwt/i18n/it.po b/auth_jwt/i18n/it.po index 9336d05128..ee29f1a08b 100644 --- a/auth_jwt/i18n/it.po +++ b/auth_jwt/i18n/it.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2023-12-15 13:34+0000\n" -"Last-Translator: Riccardo Bellanova \n" +"PO-Revision-Date: 2024-01-03 14:33+0000\n" +"Last-Translator: mymage \n" "Language-Team: none\n" "Language: it\n" "MIME-Version: 1.0\n" @@ -80,9 +80,8 @@ msgstr "Path cookie" #. module: auth_jwt #: model:ir.model.fields,field_description:auth_jwt.field_auth_jwt_validator__cookie_secure -#, fuzzy msgid "Cookie Secure" -msgstr "Cookie Secure" +msgstr "Cookie secure" #. module: auth_jwt #: model:ir.model.fields,field_description:auth_jwt.field_auth_jwt_validator__create_uid @@ -121,9 +120,8 @@ msgstr "ES512 - ECDSA usando SHA-512" #. module: auth_jwt #: model:ir.model.fields.selection,name:auth_jwt.selection__auth_jwt_validator__partner_id_strategy__email -#, fuzzy msgid "From email claim" -msgstr "Dalla richiesta email" +msgstr "Da richiesta e-mail" #. module: auth_jwt #: model_terms:ir.ui.view,arch_db:auth_jwt.view_auth_jwt_validator_form @@ -152,21 +150,18 @@ msgstr "Instradamento HTTP" #. module: auth_jwt #: model:ir.model.fields,field_description:auth_jwt.field_auth_jwt_validator__id -#, fuzzy msgid "ID" msgstr "ID" #. module: auth_jwt #: model:ir.model.fields,field_description:auth_jwt.field_auth_jwt_validator__issuer -#, fuzzy msgid "Issuer" -msgstr "Issuer" +msgstr "Segnalatore" #. module: auth_jwt #: model_terms:ir.ui.view,arch_db:auth_jwt.view_auth_jwt_validator_form -#, fuzzy msgid "JWK URI" -msgstr "JWK URI" +msgstr "URI JWK" #. module: auth_jwt #: model:ir.model,name:auth_jwt.model_auth_jwt_validator @@ -248,7 +243,6 @@ msgstr "PS512 - RSASSA-PSS usando SHA-512 e padding MGF1 con SHA-512" #. module: auth_jwt #: model_terms:ir.ui.view,arch_db:auth_jwt.view_auth_jwt_validator_form -#, fuzzy msgid "Partner" msgstr "Partner" @@ -356,6 +350,5 @@ msgstr "I validatori non devono creare una catena chiusa: {}." #. module: auth_jwt #: model_terms:ir.ui.view,arch_db:auth_jwt.view_auth_jwt_validator_form -#, fuzzy msgid "arch" msgstr "arch" From e1f7d0714f54e0f1a56cdde1631446f172152e4e Mon Sep 17 00:00:00 2001 From: mymage Date: Wed, 3 Jan 2024 12:17:39 +0000 Subject: [PATCH 011/151] Translated using Weblate (Italian) Currently translated at 100.0% (2 of 2 strings) Translation: server-auth-16.0/server-auth-16.0-base_user_show_email Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-base_user_show_email/it/ --- base_user_show_email/i18n/it.po | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/base_user_show_email/i18n/it.po b/base_user_show_email/i18n/it.po index 3b7f481b74..d9c1a7edbc 100644 --- a/base_user_show_email/i18n/it.po +++ b/base_user_show_email/i18n/it.po @@ -6,21 +6,23 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2024-01-03 14:33+0000\n" +"Last-Translator: mymage \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" #. module: base_user_show_email #: model_terms:ir.ui.view,arch_db:base_user_show_email.user_email_form msgid "Email Address" -msgstr "" +msgstr "Indirizzo e-mail" #. module: base_user_show_email #: model_terms:ir.ui.view,arch_db:base_user_show_email.login #: model_terms:ir.ui.view,arch_db:base_user_show_email.user_email_form msgid "Login" -msgstr "" +msgstr "Login" From 98d95f6bee0a7b1e4654304d43864f216de6f0ff Mon Sep 17 00:00:00 2001 From: mymage Date: Wed, 3 Jan 2024 12:18:31 +0000 Subject: [PATCH 012/151] Translated using Weblate (Italian) Currently translated at 100.0% (2 of 2 strings) Translation: server-auth-16.0/server-auth-16.0-auth_oidc_environment Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_oidc_environment/it/ --- auth_oidc_environment/i18n/it.po | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/auth_oidc_environment/i18n/it.po b/auth_oidc_environment/i18n/it.po index 78806db045..eea27c216c 100644 --- a/auth_oidc_environment/i18n/it.po +++ b/auth_oidc_environment/i18n/it.po @@ -6,20 +6,22 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2024-01-03 14:33+0000\n" +"Last-Translator: mymage \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" #. module: auth_oidc_environment #: model:ir.model,name:auth_oidc_environment.model_auth_oauth_provider msgid "OAuth2 provider" -msgstr "" +msgstr "Provider OAuth2" #. module: auth_oidc_environment #: model:ir.model.fields,field_description:auth_oidc_environment.field_auth_oauth_provider__server_env_defaults msgid "Server Env Defaults" -msgstr "" +msgstr "Server ambiente predefinito" From 8a197b3e2bfab7fc7f2b35752cc3db628029140b Mon Sep 17 00:00:00 2001 From: mymage Date: Wed, 3 Jan 2024 12:22:39 +0000 Subject: [PATCH 013/151] Translated using Weblate (Italian) Currently translated at 100.0% (4 of 4 strings) Translation: server-auth-16.0/server-auth-16.0-auth_api_key_server_env Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_api_key_server_env/it/ --- auth_api_key_server_env/i18n/it.po | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/auth_api_key_server_env/i18n/it.po b/auth_api_key_server_env/i18n/it.po index d89bdd12d3..35b514e0af 100644 --- a/auth_api_key_server_env/i18n/it.po +++ b/auth_api_key_server_env/i18n/it.po @@ -6,30 +6,32 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2024-01-03 14:33+0000\n" +"Last-Translator: mymage \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" #. module: auth_api_key_server_env #: model:ir.model,name:auth_api_key_server_env.model_auth_api_key msgid "API Key" -msgstr "" +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 "" +msgstr "Server ambiente predefinito" #. module: auth_api_key_server_env #: model:ir.model.fields,field_description:auth_api_key_server_env.field_auth_api_key__tech_name msgid "Tech Name" -msgstr "" +msgstr "Nome tecnico" #. module: auth_api_key_server_env #: model:ir.model.fields,help:auth_api_key_server_env.field_auth_api_key__tech_name msgid "Unique name for technical purposes. Eg: server env keys." -msgstr "" +msgstr "Nome univoco per motivi tecnici. Es: chiavi server ambiente." From 4962518d4b9d8e0408bb6b81144d7a1ee54d151c Mon Sep 17 00:00:00 2001 From: mymage Date: Wed, 3 Jan 2024 12:21:30 +0000 Subject: [PATCH 014/151] Translated using Weblate (Italian) Currently translated at 100.0% (4 of 4 strings) Translation: server-auth-16.0/server-auth-16.0-user_log_view Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-user_log_view/it/ --- user_log_view/i18n/it.po | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/user_log_view/i18n/it.po b/user_log_view/i18n/it.po index 941c009fde..4719f62cbe 100644 --- a/user_log_view/i18n/it.po +++ b/user_log_view/i18n/it.po @@ -6,31 +6,33 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2024-01-03 14:33+0000\n" +"Last-Translator: mymage \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" #. module: user_log_view #: model:ir.actions.act_window,name:user_log_view.action_user_log #: model_terms:ir.ui.view,arch_db:user_log_view.res_users_view_form msgid "Authentication logs" -msgstr "" +msgstr "Registri autenticazione" #. module: user_log_view #: model_terms:ir.ui.view,arch_db:user_log_view.res_users_log_view_search msgid "Date" -msgstr "" +msgstr "Data" #. module: user_log_view #: model_terms:ir.ui.view,arch_db:user_log_view.res_users_log_view_search msgid "Group By" -msgstr "" +msgstr "Raggruppa per" #. module: user_log_view #: model_terms:ir.ui.view,arch_db:user_log_view.res_users_log_view_search msgid "Test Search" -msgstr "" +msgstr "Testa ricerca" From f2884a5334a6f4e00b727958c9561142ea19eaca Mon Sep 17 00:00:00 2001 From: mymage Date: Wed, 3 Jan 2024 12:23:31 +0000 Subject: [PATCH 015/151] Translated using Weblate (Italian) Currently translated at 100.0% (5 of 5 strings) Translation: server-auth-16.0/server-auth-16.0-users_ldap_mail Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-users_ldap_mail/it/ --- users_ldap_mail/i18n/it.po | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/users_ldap_mail/i18n/it.po b/users_ldap_mail/i18n/it.po index 5b5496328c..6f42d6e7e4 100644 --- a/users_ldap_mail/i18n/it.po +++ b/users_ldap_mail/i18n/it.po @@ -6,13 +6,15 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2024-01-03 14:33+0000\n" +"Last-Translator: mymage \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" #. module: users_ldap_mail #: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__name_attribute @@ -20,23 +22,25 @@ msgid "" "By default 'cn' is used. For ActiveDirectory you might use 'displayName' " "instead." msgstr "" +"In modo predefinito viene usato \"cn\". Per ActiveDirectory potrebbe invece " +"essere utilizzato \"displayName\"." #. module: users_ldap_mail #: model:ir.model,name:users_ldap_mail.model_res_company_ldap msgid "Company LDAP configuration" -msgstr "" +msgstr "Configurazione LDAP azienda" #. module: users_ldap_mail #: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__mail_attribute msgid "E-mail attribute" -msgstr "" +msgstr "Attributo email" #. module: users_ldap_mail #: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__mail_attribute msgid "LDAP attribute to use to retrieve e-mail address." -msgstr "" +msgstr "Attributo LDAP da utilizzare per il recupero degli indirizzi e-mail." #. module: users_ldap_mail #: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__name_attribute msgid "Name Attribute" -msgstr "" +msgstr "Attributo del nome" From 558e8d6994ec0e76bd2ebf802887555d73d8dd17 Mon Sep 17 00:00:00 2001 From: mymage Date: Wed, 3 Jan 2024 12:18:53 +0000 Subject: [PATCH 016/151] Translated using Weblate (Italian) Currently translated at 100.0% (2 of 2 strings) Translation: server-auth-16.0/server-auth-16.0-auth_jwt_server_env Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_jwt_server_env/it/ --- auth_jwt_server_env/i18n/it.po | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/auth_jwt_server_env/i18n/it.po b/auth_jwt_server_env/i18n/it.po index 3c74fdbbf2..5d664490e7 100644 --- a/auth_jwt_server_env/i18n/it.po +++ b/auth_jwt_server_env/i18n/it.po @@ -6,20 +6,22 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2024-01-03 14:33+0000\n" +"Last-Translator: mymage \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" #. module: auth_jwt_server_env #: model:ir.model,name:auth_jwt_server_env.model_auth_jwt_validator msgid "JWT Validator Configuration" -msgstr "" +msgstr "Configurazione validatore JWT" #. module: auth_jwt_server_env #: model:ir.model.fields,field_description:auth_jwt_server_env.field_auth_jwt_validator__server_env_defaults msgid "Server Env Defaults" -msgstr "" +msgstr "Server ambiente predefinito" From d6b3b20b3de971f44afd3bfd6d86499cb9ced69a Mon Sep 17 00:00:00 2001 From: mymage Date: Thu, 4 Jan 2024 08:10:53 +0000 Subject: [PATCH 017/151] Translated using Weblate (Italian) Currently translated at 100.0% (22 of 22 strings) Translation: server-auth-16.0/server-auth-16.0-users_ldap_populate Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-users_ldap_populate/it/ --- users_ldap_populate/i18n/it.po | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/users_ldap_populate/i18n/it.po b/users_ldap_populate/i18n/it.po index 5d143ada18..4d8f3c8ef9 100644 --- a/users_ldap_populate/i18n/it.po +++ b/users_ldap_populate/i18n/it.po @@ -10,7 +10,7 @@ msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-06-26 20:39+0000\n" -"PO-Revision-Date: 2023-04-17 16:35+0000\n" +"PO-Revision-Date: 2024-01-04 10:34+0000\n" "Last-Translator: mymage \n" "Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" "Language: it\n" @@ -18,17 +18,17 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.14.1\n" +"X-Generator: Weblate 4.17\n" #. module: users_ldap_populate #: model_terms:ir.ui.view,arch_db:users_ldap_populate.populate_wizard_view msgid "Add populate button to ldap view" -msgstr "" +msgstr "Aggiungi pulsante compilazione alla vista LDAP" #. module: users_ldap_populate #: model:ir.model,name:users_ldap_populate.model_res_company_ldap msgid "Company LDAP configuration" -msgstr "" +msgstr "Configurazione LDAP azienda" #. module: users_ldap_populate #: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard__create_uid @@ -43,7 +43,7 @@ msgstr "Creato il" #. module: users_ldap_populate #: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap__deactivate_unknown_users msgid "Deactivate unknown users" -msgstr "" +msgstr "Disattiva utenti sconosciuti" #. module: users_ldap_populate #: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard__display_name @@ -58,7 +58,7 @@ msgstr "ID" #. module: users_ldap_populate #: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard__ldap_id msgid "LDAP Configuration" -msgstr "" +msgstr "Configurazione LDAP" #. module: users_ldap_populate #: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard____last_update @@ -79,6 +79,8 @@ msgstr "Ultimo aggiornamento il" #: model:ir.model.fields,help:users_ldap_populate.field_res_company_ldap__no_deactivate_user_ids msgid "List users who never should be deactivated by the deactivation wizard" msgstr "" +"Elenco utenti che non devono essere disattivati dalla procedura guidata di " +"disattivazione" #. module: users_ldap_populate #: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard__name @@ -92,48 +94,50 @@ msgstr "Nome" msgid "" "No login attribute found: Could not extract login attribute from filter %s" msgstr "" +"Nessun attributo di accesso trovato: impossibile estrarre attributo di " +"accesso dal filtro %s" #. module: users_ldap_populate #: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard__users_created msgid "Number of users created" -msgstr "" +msgstr "Numero di utenti creati" #. module: users_ldap_populate #: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap_populate_wizard__users_deactivated msgid "Number of users deactivated" -msgstr "" +msgstr "Numero di utenti disattivati" #. module: users_ldap_populate #: model_terms:ir.ui.view,arch_db:users_ldap_populate.populate_wizard_view msgid "OK" -msgstr "" +msgstr "OK" #. module: users_ldap_populate #: model_terms:ir.ui.view,arch_db:users_ldap_populate.company_form_view msgid "Populate" -msgstr "" +msgstr "Compila" #. module: users_ldap_populate #: model_terms:ir.ui.view,arch_db:users_ldap_populate.company_form_view msgid "Populate user database" -msgstr "" +msgstr "Compila database utente" #. module: users_ldap_populate #: model:ir.model,name:users_ldap_populate.model_res_company_ldap_populate_wizard msgid "Populate users from LDAP" -msgstr "" +msgstr "Compila utenti da LDAP" #. module: users_ldap_populate #. odoo-python #: code:addons/users_ldap_populate/models/users_ldap.py:0 #, python-format msgid "Unable to process user with login %s" -msgstr "" +msgstr "Impossibile elaborare utente con accesso %s" #. module: users_ldap_populate #: model:ir.model.fields,field_description:users_ldap_populate.field_res_company_ldap__no_deactivate_user_ids msgid "Users never to deactivate" -msgstr "" +msgstr "Utenti da non disattivare" #~ msgid "res.company.ldap" #~ msgstr "res.company.ldap" From dbbd0dabbe59aecb461ef7afadc4c70d685943fb Mon Sep 17 00:00:00 2001 From: mymage Date: Thu, 4 Jan 2024 15:21:13 +0000 Subject: [PATCH 018/151] Translated using Weblate (Italian) Currently translated at 100.0% (50 of 50 strings) Translation: server-auth-16.0/server-auth-16.0-password_security Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-password_security/it/ --- password_security/i18n/it.po | 80 +++++++++++++++++++++--------------- 1 file changed, 48 insertions(+), 32 deletions(-) diff --git a/password_security/i18n/it.po b/password_security/i18n/it.po index c8edb3fcad..d636d76d1b 100644 --- a/password_security/i18n/it.po +++ b/password_security/i18n/it.po @@ -10,8 +10,8 @@ msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-12-23 02:01+0000\n" -"PO-Revision-Date: 2023-10-13 12:44+0000\n" -"Last-Translator: Francesco Foresti \n" +"PO-Revision-Date: 2024-01-04 17:34+0000\n" +"Last-Translator: mymage \n" "Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" "Language: it\n" "MIME-Version: 1.0\n" @@ -28,6 +28,8 @@ msgid "" "\n" "* Lowercase letter (at least %s characters)" msgstr "" +"\n" +"* Lettere minuscole (almeno %s caratteri)" #. module: password_security #. odoo-python @@ -37,6 +39,8 @@ msgid "" "\n" "* Numeric digit (at least %s characters)" msgstr "" +"\n" +"* Cifra numerica (almeno %s caratteri)" #. module: password_security #. odoo-python @@ -46,6 +50,8 @@ msgid "" "\n" "* Special character (at least %s characters)" msgstr "" +"\n" +"* Crattere speciale (almeno %s caratteri)" #. module: password_security #. odoo-python @@ -55,6 +61,8 @@ msgid "" "\n" "* Uppercase letter (at least %s characters)" msgstr "" +"\n" +"* Lettere maiuscole (almeno %s caratteri)" #. module: password_security #: model_terms:ir.ui.view,arch_db:password_security.res_config_settings_view_form @@ -63,19 +71,23 @@ msgid "" " Minimum number of characters\n" " " msgstr "" +"\n" +" Numero minimo di caratteri\n" +" " #. module: password_security #: model:ir.model.fields,help:password_security.field_res_company__password_minimum #: model:ir.model.fields,help:password_security.field_res_config_settings__password_minimum msgid "Amount of hours until a user may change password again" msgstr "" +"Numero di ore dopo le quali l'utente può cambiare nuovamente la password" #. module: password_security #. odoo-python #: code:addons/password_security/models/res_users.py:0 #, python-format msgid "Cannot use the most recent %d passwords" -msgstr "" +msgstr "Impossibile usare le %d password più recenti" #. module: password_security #: model:ir.model,name:password_security.model_res_company @@ -85,7 +97,7 @@ msgstr "Aziende" #. module: password_security #: model:ir.model,name:password_security.model_res_config_settings msgid "Config Settings" -msgstr "" +msgstr "Impostazioni configurazione" #. module: password_security #: model:ir.model.fields,field_description:password_security.field_res_users_pass_history__create_uid @@ -111,7 +123,7 @@ msgstr "Giorni" #. module: password_security #: model_terms:ir.ui.view,arch_db:password_security.res_config_settings_view_form msgid "Disallow reuse of" -msgstr "" +msgstr "Impedire riuso di" #. module: password_security #: model:ir.model.fields,help:password_security.field_res_company__password_history @@ -120,6 +132,8 @@ msgid "" "Disallow reuse of this many previous passwords - use negative number for " "infinite, or 0 to disable" msgstr "" +"Impedire il riutilizzo di questa quantità di password precedenti - usare un " +"numero negativo per infinito, o 0 per disabilitare" #. module: password_security #: model:ir.model.fields,field_description:password_security.field_res_users_pass_history__display_name @@ -129,7 +143,7 @@ msgstr "Nome visualizzato" #. module: password_security #: model:ir.model.fields,field_description:password_security.field_res_users_pass_history__password_crypt msgid "Encrypted Password" -msgstr "" +msgstr "Password criptata" #. module: password_security #: model:ir.model.fields,field_description:password_security.field_res_company__password_history @@ -141,7 +155,7 @@ msgstr "Cronologia" #: model:ir.model.fields,help:password_security.field_res_company__password_expiration #: model:ir.model.fields,help:password_security.field_res_config_settings__password_expiration msgid "How many days until passwords expire" -msgstr "" +msgstr "Quanti giorni prima che le password scadano" #. module: password_security #: model:ir.model.fields,field_description:password_security.field_res_users_pass_history__id @@ -166,74 +180,74 @@ msgstr "Ultimo aggiornamento il" #. module: password_security #: model:ir.model.fields,field_description:password_security.field_res_users__password_write_date msgid "Last password update" -msgstr "" +msgstr "Ultimo aggiornamento password" #. module: password_security #: model:ir.model.fields,field_description:password_security.field_res_company__password_lower #: model:ir.model.fields,field_description:password_security.field_res_config_settings__password_lower msgid "Lowercase" -msgstr "" +msgstr "Minuscole" #. module: password_security #: model:ir.model.fields,field_description:password_security.field_res_company__password_minimum #: model:ir.model.fields,field_description:password_security.field_res_config_settings__password_minimum msgid "Minimum Hours" -msgstr "" +msgstr "Ore minime" #. module: password_security #: model_terms:ir.ui.view,arch_db:password_security.res_config_settings_view_form msgid "Minimum number of lowercase characters" -msgstr "" +msgstr "Numero minimo di caratteri minuscoli" #. module: password_security #: model_terms:ir.ui.view,arch_db:password_security.res_config_settings_view_form msgid "Minimum number of numeric characters" -msgstr "" +msgstr "Numero minimo di caratteri numerici" #. module: password_security #: model_terms:ir.ui.view,arch_db:password_security.res_config_settings_view_form msgid "Minimum number of special characters" -msgstr "" +msgstr "Numero minimo di caratteri speciali" #. module: password_security #: model_terms:ir.ui.view,arch_db:password_security.res_config_settings_view_form msgid "Minimum number of uppercase characters" -msgstr "" +msgstr "Numero minimo di caratteri maiuscoli" #. module: password_security #. odoo-python #: code:addons/password_security/models/res_users.py:0 #, python-format msgid "Must contain the following:" -msgstr "" +msgstr "Deve contenere le seguenti:" #. module: password_security #: model:ir.model.fields,field_description:password_security.field_res_company__password_numeric #: model:ir.model.fields,field_description:password_security.field_res_config_settings__password_numeric msgid "Numeric" -msgstr "" +msgstr "Numerici" #. module: password_security #: model:ir.model.fields,field_description:password_security.field_res_users__password_history_ids msgid "Password History" -msgstr "" +msgstr "Storico password" #. module: password_security #: model_terms:ir.ui.view,arch_db:password_security.res_config_settings_view_form msgid "Password Policy" -msgstr "" +msgstr "Politica password" #. module: password_security #: model_terms:ir.ui.view,arch_db:password_security.res_config_settings_view_form msgid "Password expires in" -msgstr "" +msgstr "La password scade in" #. module: password_security #. odoo-python #: code:addons/password_security/models/res_users.py:0 #, python-format msgid "Password must be %d characters or more." -msgstr "" +msgstr "La password deve essere di %d o più caratteri." #. module: password_security #. odoo-python @@ -243,52 +257,54 @@ msgid "" "Passwords can only be reset every %d hour(s). Please contact an " "administrator for assistance." msgstr "" +"Le password possono essere reimpostate solamente ogni %d ore. Contattare un " +"amministratore per assistenza." #. module: password_security #: model:ir.model.fields,help:password_security.field_res_company__password_lower #: model:ir.model.fields,help:password_security.field_res_config_settings__password_lower msgid "Require number of lowercase letters" -msgstr "" +msgstr "Richiede un numero di lettere minuscole" #. module: password_security #: model:ir.model.fields,help:password_security.field_res_company__password_numeric #: model:ir.model.fields,help:password_security.field_res_config_settings__password_numeric msgid "Require number of numeric digits" -msgstr "" +msgstr "Richiede un numero di cifre numeriche" #. module: password_security #: model:ir.model.fields,help:password_security.field_res_company__password_special #: model:ir.model.fields,help:password_security.field_res_config_settings__password_special msgid "Require number of unique special characters" -msgstr "" +msgstr "Richiede un numero di caratteri speciali unici" #. module: password_security #: model:ir.model.fields,help:password_security.field_res_company__password_upper #: model:ir.model.fields,help:password_security.field_res_config_settings__password_upper msgid "Require number of uppercase letters" -msgstr "" +msgstr "Richiede un numero di lettere maiuscole" #. module: password_security #: model:ir.model,name:password_security.model_res_users_pass_history msgid "Res Users Password History" -msgstr "" +msgstr "Storico password utente res" #. module: password_security #: model:ir.model.fields,field_description:password_security.field_res_company__password_special #: model:ir.model.fields,field_description:password_security.field_res_config_settings__password_special msgid "Special" -msgstr "" +msgstr "Speciali" #. module: password_security #: model:ir.model.fields,field_description:password_security.field_res_company__password_upper #: model:ir.model.fields,field_description:password_security.field_res_config_settings__password_upper msgid "Uppercase" -msgstr "" +msgstr "Maiuscole" #. module: password_security #: model_terms:ir.ui.view,arch_db:password_security.res_config_settings_view_form msgid "Use negative number for infinite, or 0 to disable" -msgstr "" +msgstr "Usare un numero negativo per infinito o 0 per disabilitare" #. module: password_security #: model:ir.model,name:password_security.model_res_users @@ -299,22 +315,22 @@ msgstr "Utente" #. module: password_security #: model_terms:ir.ui.view,arch_db:password_security.res_config_settings_view_form msgid "User can change password in" -msgstr "" +msgstr "L'utente puà modificare la password in" #. module: password_security #: model_terms:ir.ui.view,arch_db:password_security.res_config_settings_view_form msgid "days." -msgstr "" +msgstr "giorni." #. module: password_security #: model_terms:ir.ui.view,arch_db:password_security.res_config_settings_view_form msgid "hours again." -msgstr "" +msgstr "ore nuovamente." #. module: password_security #: model_terms:ir.ui.view,arch_db:password_security.res_config_settings_view_form msgid "previous passwords." -msgstr "" +msgstr "password precedenti." #~ msgid "Characters" #~ msgstr "Caratteri" From 4f92571904c41f095e61224739ec05cf42270073 Mon Sep 17 00:00:00 2001 From: mymage Date: Thu, 4 Jan 2024 14:59:06 +0000 Subject: [PATCH 019/151] Translated using Weblate (Italian) Currently translated at 100.0% (18 of 18 strings) Translation: server-auth-16.0/server-auth-16.0-auth_oauth_ropc Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_oauth_ropc/it/ --- auth_oauth_ropc/i18n/it.po | 40 ++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/auth_oauth_ropc/i18n/it.po b/auth_oauth_ropc/i18n/it.po index e5c7b26f73..0ba08ba715 100644 --- a/auth_oauth_ropc/i18n/it.po +++ b/auth_oauth_ropc/i18n/it.po @@ -6,103 +6,105 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2024-01-04 17:34+0000\n" +"Last-Translator: mymage \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" #. module: auth_oauth_ropc #: model:ir.model.fields,field_description:auth_oauth_ropc.field_oauth_ropc_provider__active msgid "Active" -msgstr "" +msgstr "Attivo" #. module: auth_oauth_ropc #: model:ir.model.fields,field_description:auth_oauth_ropc.field_oauth_ropc_provider__auth_endpoint msgid "Authorization URL" -msgstr "" +msgstr "URL autorizzazione" #. module: auth_oauth_ropc #: model:ir.model.fields,field_description:auth_oauth_ropc.field_oauth_ropc_provider__client_id msgid "Client ID" -msgstr "" +msgstr "ID client" #. module: auth_oauth_ropc #: model:ir.model.fields,field_description:auth_oauth_ropc.field_oauth_ropc_provider__client_secret msgid "Client Secret" -msgstr "" +msgstr "Chiave segreta client" #. module: auth_oauth_ropc #: model:ir.model.fields,field_description:auth_oauth_ropc.field_oauth_ropc_provider__create_uid msgid "Created by" -msgstr "" +msgstr "Creato da" #. module: auth_oauth_ropc #: model:ir.model.fields,field_description:auth_oauth_ropc.field_oauth_ropc_provider__create_date msgid "Created on" -msgstr "" +msgstr "Creato il" #. module: auth_oauth_ropc #: model:ir.model.fields,field_description:auth_oauth_ropc.field_oauth_ropc_provider__display_name msgid "Display Name" -msgstr "" +msgstr "Nome visualizzato" #. module: auth_oauth_ropc #: model:ir.model.fields,field_description:auth_oauth_ropc.field_oauth_ropc_provider__id msgid "ID" -msgstr "" +msgstr "ID" #. module: auth_oauth_ropc #: model:ir.model.fields,field_description:auth_oauth_ropc.field_oauth_ropc_provider____last_update msgid "Last Modified on" -msgstr "" +msgstr "Ultima modifica il" #. module: auth_oauth_ropc #: model:ir.model.fields,field_description:auth_oauth_ropc.field_oauth_ropc_provider__write_uid msgid "Last Updated by" -msgstr "" +msgstr "Ultimo aggiornamento di" #. module: auth_oauth_ropc #: model:ir.model.fields,field_description:auth_oauth_ropc.field_oauth_ropc_provider__write_date msgid "Last Updated on" -msgstr "" +msgstr "Ultimo aggiornamento il" #. module: auth_oauth_ropc #: model:ir.model.fields,field_description:auth_oauth_ropc.field_oauth_ropc_provider__name msgid "Name" -msgstr "" +msgstr "Nome" #. module: auth_oauth_ropc #: model:ir.model,name:auth_oauth_ropc.model_oauth_ropc_provider msgid "OAuth ROPC Provider" -msgstr "" +msgstr "Fornitore ROPC OAuth" #. module: auth_oauth_ropc #: model:ir.model.fields,field_description:auth_oauth_ropc.field_oauth_ropc_provider__resource msgid "Resource" -msgstr "" +msgstr "Risorsa" #. module: auth_oauth_ropc #: model:ir.model.fields,field_description:auth_oauth_ropc.field_oauth_ropc_provider__scope msgid "Scope" -msgstr "" +msgstr "Ambito" #. module: auth_oauth_ropc #: model:ir.model,name:auth_oauth_ropc.model_res_users msgid "User" -msgstr "" +msgstr "Utente" #. module: auth_oauth_ropc #. odoo-python #: code:addons/auth_oauth_ropc/models/oauth_ropc_provider.py:0 #, python-format msgid "You can define only one active provider" -msgstr "" +msgstr "Si può definire attivo un solo fornitore" #. module: auth_oauth_ropc #: model:ir.actions.act_window,name:auth_oauth_ropc.oauth_ropc_provider_act_window #: model:ir.ui.menu,name:auth_oauth_ropc.oauth_ropc_provider_menu msgid "oauth ROPC Providers" -msgstr "" +msgstr "Fornitori ROPC OAuth" From b2a609e3d4800482fe49ee4496a096b88a67a5ae Mon Sep 17 00:00:00 2001 From: mymage Date: Thu, 4 Jan 2024 15:31:25 +0000 Subject: [PATCH 020/151] Translated using Weblate (Italian) Currently translated at 85.5% (77 of 90 strings) Translation: server-auth-16.0/server-auth-16.0-auth_saml Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_saml/it/ --- auth_saml/i18n/it.po | 159 ++++++++++++++++++++++++++----------------- 1 file changed, 95 insertions(+), 64 deletions(-) diff --git a/auth_saml/i18n/it.po b/auth_saml/i18n/it.po index 9daf4f8dbc..f3b27efb29 100644 --- a/auth_saml/i18n/it.po +++ b/auth_saml/i18n/it.po @@ -6,57 +6,61 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2024-01-04 17:34+0000\n" +"Last-Translator: mymage \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" #. module: auth_saml #: model_terms:ir.ui.view,arch_db:auth_saml.providers msgid "- or -" -msgstr "" +msgstr "- o -" #. module: auth_saml #. odoo-python #: code:addons/auth_saml/controllers/main.py:0 #, python-format msgid "Access Denied" -msgstr "" +msgstr "Accesso negato" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__active msgid "Active" -msgstr "" +msgstr "Attivo" #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_auth_saml_provider__css_class msgid "Add a CSS class that serves you to style the login button." -msgstr "" +msgstr "Aggiungere una classe CSS utile a definire il pulsante di accesso." #. module: auth_saml #: model_terms:ir.ui.view,arch_db:auth_saml.view_saml_provider_form msgid "Algorithm used to sign requests." -msgstr "" +msgstr "Algoritmo utilizzato per firmare le richieste." #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_res_config_settings__allow_saml_uid_and_internal_password msgid "" "Allow SAML users to possess an Odoo password (warning: decreases security)" msgstr "" +"Consente agli utenti SAML di avere una password Odoo (attenzione: diminuisce " +"la sicurezza)" #. module: auth_saml #: model_terms:ir.ui.view,arch_db:auth_saml.auth_saml_provider_view_search #: model_terms:ir.ui.view,arch_db:auth_saml.view_saml_provider_form msgid "Archived" -msgstr "" +msgstr "In archivio" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__attribute_mapping_ids msgid "Attribute Mapping" -msgstr "" +msgstr "Mappatura attributo" #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_auth_saml_provider__matching_attribute @@ -64,6 +68,8 @@ msgid "" "Attribute to look for in the returned IDP response to match against an Odoo " "user." msgstr "" +"Attributo da cercare nella risposta IDP restituita da corrispondere con un " +"utente Odoo." #. module: auth_saml #: model_terms:ir.ui.view,arch_db:auth_saml.view_saml_provider_form @@ -72,16 +78,19 @@ msgid "" "Provider). You may use the special case \"subject.nameId\" to match against " "the nameId in the IDP response." msgstr "" +"Attributo per corrispondere l'utente in Odoo con quello dell'IDP (fornitore " +"di identità). Si può utilizzare l'opzione speciale \"subject.nameId\" per " +"corrispondere al nameId nella risposta IDP." #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__authn_requests_signed msgid "Authn Requests Signed" -msgstr "" +msgstr "Richieste atenticazione firmate" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__autoredirect msgid "Automatic Redirection" -msgstr "" +msgstr "Inoltro automatico" #. module: auth_saml #: model_terms:ir.ui.view,arch_db:auth_saml.view_saml_provider_form @@ -89,6 +98,8 @@ msgid "" "Available after first save. The URL will change if the provider is deleted " "& recreated or the database is renamed." msgstr "" +"Disponibile dopo il primo salvataggio. L'URL cambierà se il forntore è " +"cancellato e ricreato il database rinominato." #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_auth_saml_provider__sp_baseurl @@ -96,16 +107,18 @@ msgid "" "Base URL sent to Odoo with this, rather than automatically\n" " detecting from request or system parameter web.base.url" msgstr "" +"URL base inviato a Odoo con questo, anziché rilevarlo \n" +" automaticamente dalla richiesta o parametro di sistema web.base.url" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__css_class msgid "Button Icon CSS class" -msgstr "" +msgstr "Pulsante icona classe CSS" #. module: auth_saml #: model:ir.model,name:auth_saml.model_res_config_settings msgid "Config Settings" -msgstr "" +msgstr "Impostazioni configurazione" #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_auth_saml_provider__idp_metadata @@ -113,6 +126,8 @@ msgid "" "Configuration for this Identity Provider. Supplied by the provider, in XML " "format." msgstr "" +"Configurazine per questo frnitore di identità. Fornito dal fornitore, in " +"formato XML." #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_attribute_mapping__create_uid @@ -120,7 +135,7 @@ msgstr "" #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_request__create_uid #: model:ir.model.fields,field_description:auth_saml.field_res_users_saml__create_uid msgid "Created by" -msgstr "" +msgstr "Creato da" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_attribute_mapping__create_date @@ -128,17 +143,17 @@ msgstr "" #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_request__create_date #: model:ir.model.fields,field_description:auth_saml.field_res_users_saml__create_date msgid "Created on" -msgstr "" +msgstr "Creato il" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_request__saml_request_id msgid "Current Request ID" -msgstr "" +msgstr "ID richiesta attuale" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_res_users_saml__saml_access_token msgid "Current SAML token for this user" -msgstr "" +msgstr "Token SAML attuale per questo utente" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_attribute_mapping__display_name @@ -146,17 +161,17 @@ msgstr "" #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_request__display_name #: model:ir.model.fields,field_description:auth_saml.field_res_users_saml__display_name msgid "Display Name" -msgstr "" +msgstr "Nome visualizzato" #. module: auth_saml #: model_terms:ir.ui.view,arch_db:auth_saml.view_saml_provider_form msgid "Display Settings" -msgstr "" +msgstr "Visualizza impostazioni" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__entity_id msgid "Entity ID" -msgstr "" +msgstr "ID entità" #. module: auth_saml #: model_terms:ir.ui.view,arch_db:auth_saml.view_saml_provider_form @@ -164,16 +179,18 @@ msgid "" "Entity Identifier sent to the IDP. Often this would be the metadata URL, but" " it can be any string." msgstr "" +"Identificatore entità inviato al IDP. Spesso è l'URL dei metadati, ma può " +"essere qualsiasi stringa." #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_auth_saml_provider__entity_id msgid "EntityID passed to IDP, used to identify the Odoo" -msgstr "" +msgstr "EntityID passato all'IDP, utilizzato per identificate Odoo" #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_auth_saml_provider__matching_attribute_to_lower msgid "Force matching_attribute to lower case before passing back to Odoo." -msgstr "" +msgstr "Forza matching_attribute a minuscolo prima di restituirlo ad Odoo." #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_attribute_mapping__id @@ -181,27 +198,27 @@ msgstr "" #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_request__id #: model:ir.model.fields,field_description:auth_saml.field_res_users_saml__id msgid "ID" -msgstr "" +msgstr "ID" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_attribute_mapping__attribute_name msgid "IDP Response Attribute" -msgstr "" +msgstr "Attributo risposta IDP" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__idp_metadata msgid "Identity Provider Metadata" -msgstr "" +msgstr "Metadati fornitore identità" #. module: auth_saml #: model_terms:ir.ui.view,arch_db:auth_saml.view_saml_provider_form msgid "Identity Provider Settings" -msgstr "" +msgstr "Impostazioni fornitore identità" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__matching_attribute msgid "Identity Provider matching attribute" -msgstr "" +msgstr "Attributo corrsipondenza fornitore identità" #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_auth_saml_provider__authn_requests_signed @@ -209,22 +226,26 @@ msgid "" "Indicates if the Authentication Requests sent by this SP should be signed by" " default." msgstr "" +"ndica se la richiesta di atenticazione inviata da questo SP deve essere " +"firmata in modo predefinito." #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_auth_saml_provider__want_assertions_signed msgid "Indicates if this SP wants the IdP to send the assertions signed." -msgstr "" +msgstr "Indica se questo SP richiede che l'IDP invii la conferma firmata." #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_auth_saml_provider__logout_requests_signed msgid "" "Indicates if this entity will sign the Logout Requests originated from it." msgstr "" +"Indica se questa entità firmerà la richiesta di uscita da esso generata." #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_auth_saml_provider__want_response_signed msgid "Indicates that Authentication Responses to this SP must be signed." msgstr "" +"Indica che le risposte di autenticazine a questo SP devono essere firmate." #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_auth_saml_provider__want_assertions_or_response_signed @@ -232,6 +253,8 @@ msgid "" "Indicates that either the Authentication Response or the assertions " "contained within the response to this SP must be signed." msgstr "" +"Indica che la risposta di autenticazione o le dichiarazioni contenute nelle " +"risposte a questo SP deve essere firmata." #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_attribute_mapping____last_update @@ -239,7 +262,7 @@ msgstr "" #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_request____last_update #: model:ir.model.fields,field_description:auth_saml.field_res_users_saml____last_update msgid "Last Modified on" -msgstr "" +msgstr "Ultima modifica il" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_attribute_mapping__write_uid @@ -247,7 +270,7 @@ msgstr "" #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_request__write_uid #: model:ir.model.fields,field_description:auth_saml.field_res_users_saml__write_uid msgid "Last Updated by" -msgstr "" +msgstr "Ultimo aggiornamento di" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_attribute_mapping__write_date @@ -255,27 +278,27 @@ msgstr "" #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_request__write_date #: model:ir.model.fields,field_description:auth_saml.field_res_users_saml__write_date msgid "Last Updated on" -msgstr "" +msgstr "Ultimo aggiornamento il" #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_auth_saml_provider__body msgid "Link text in Login Dialog" -msgstr "" +msgstr "Collega il testo nella maschera di accesso" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__body msgid "Login button label" -msgstr "" +msgstr "Etichetta pulsante accesso" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__logout_requests_signed msgid "Logout Requests Signed" -msgstr "" +msgstr "Richiesta uscita firmata" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__matching_attribute_to_lower msgid "Lowercase IDP Matching Attribute" -msgstr "" +msgstr "Attributo corrispondenza IDP minuscolo" #. module: auth_saml #: model_terms:ir.ui.view,arch_db:auth_saml.view_saml_provider_form @@ -284,163 +307,167 @@ msgid "" "available. If multiple values are returned (i.e. a list) then the first " "value is used." msgstr "" +"Gli attributi mappati sono copiati dalla risposta SAML ad ogni accesso, se " +"disponibile. Se vengono restituiti valori multipli (cioè una lista) allora " +"viene usato il primo valore." #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__sp_metadata_url msgid "Metadata URL" -msgstr "" +msgstr "URL metadati" #. module: auth_saml #. odoo-python #: code:addons/auth_saml/controllers/main.py:0 #, python-format msgid "Missing parameters" -msgstr "" +msgstr "Parametri mancanti" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_attribute_mapping__field_name msgid "Odoo Field" -msgstr "" +msgstr "Campo Odoo" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__sp_pem_private msgid "Odoo Private Key" -msgstr "" +msgstr "Chiave privata Odoo" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__sp_pem_private_filename msgid "Odoo Private Key File Name" -msgstr "" +msgstr "Nome file chiave privata Odoo" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__sp_pem_public msgid "Odoo Public Certificate" -msgstr "" +msgstr "Certificato pubblico Odoo" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__sp_pem_public_filename msgid "Odoo Public Certificate File Name" -msgstr "" +msgstr "Nome file certificato pubblico Odoo" #. module: auth_saml #: model_terms:ir.ui.view,arch_db:auth_saml.view_saml_provider_form msgid "Odoo Settings" -msgstr "" +msgstr "Impostazioni Odoo" #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_auth_saml_provider__autoredirect msgid "" "Only the provider with the higher priority will be automatically redirected" msgstr "" +"Solo il fornitore con la priorità maggiore verrà inoltrato automaticamente" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__sp_baseurl msgid "Override Base URL" -msgstr "" +msgstr "Ignora URL base" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_attribute_mapping__provider_id msgid "Provider" -msgstr "" +msgstr "Fornitore" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__name msgid "Provider Name" -msgstr "" +msgstr "Nome fornitore" #. module: auth_saml #: model:ir.actions.act_window,name:auth_saml.action_saml_provider #: model_terms:ir.ui.view,arch_db:auth_saml.auth_saml_provider_view_search msgid "Providers" -msgstr "" +msgstr "Fornitori" #. module: auth_saml #: model_terms:ir.ui.view,arch_db:auth_saml.view_users_form msgid "SAML" -msgstr "" +msgstr "SAML" #. module: auth_saml #: model:ir.model,name:auth_saml.model_auth_saml_request msgid "SAML Outstanding Requests" -msgstr "" +msgstr "Richiesta straordinaria SAML" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_res_users_saml__saml_provider_id #: model_terms:ir.ui.view,arch_db:auth_saml.view_saml_provider_form msgid "SAML Provider" -msgstr "" +msgstr "Fornitore SAML" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_request__saml_provider_id msgid "SAML Provider that issued the token" -msgstr "" +msgstr "Fornitore SAML che ha emesso il token" #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_res_users_saml__saml_uid msgid "SAML Provider user_id" -msgstr "" +msgstr "user_id fornitore SAML" #. module: auth_saml #: model:ir.ui.menu,name:auth_saml.menu_saml_providers msgid "SAML Providers" -msgstr "" +msgstr "Fornitori SAML" #. module: auth_saml #: model:ir.model.constraint,message:auth_saml.constraint_res_users_saml_uniq_users_saml_provider_saml_uid msgid "SAML UID must be unique per provider" -msgstr "" +msgstr "UID SAML deve essere univoco per fornitore" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_res_users_saml__saml_uid msgid "SAML User ID" -msgstr "" +msgstr "ID utente SAML" #. module: auth_saml #: model:ir.model,name:auth_saml.model_auth_saml_provider msgid "SAML2 Provider" -msgstr "" +msgstr "Fornitore SAML2" #. module: auth_saml #: model:ir.model,name:auth_saml.model_auth_saml_attribute_mapping msgid "SAML2 attribute mapping" -msgstr "" +msgstr "Mappatura attributo SAML2" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_res_users__saml_ids msgid "Saml" -msgstr "" +msgstr "SAML" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__sequence msgid "Sequence" -msgstr "" +msgstr "Sequenza" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__sign_authenticate_requests msgid "Sign Authenticate Requests" -msgstr "" +msgstr "Firma richieste autenticazione" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__sign_metadata msgid "Sign Metadata" -msgstr "" +msgstr "Frma metadati" #. module: auth_saml #. odoo-python #: code:addons/auth_saml/controllers/main.py:0 #, python-format msgid "Sign up is not allowed on this database." -msgstr "" +msgstr "Non è consentito iscriversi a questo database." #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__sig_alg msgid "Signature Algorithm" -msgstr "" +msgstr "Algoritmo firma" #. module: auth_saml #: model:ir.model,name:auth_saml.model_ir_config_parameter msgid "System Parameter" -msgstr "" +msgstr "Parametro di sistema" #. module: auth_saml #: model_terms:ir.ui.view,arch_db:auth_saml.view_saml_provider_form @@ -449,11 +476,15 @@ msgid "" "odoo responding on multiple URLs you can use this to force it to send a " "specific address rather than rely on automatically detecting." msgstr "" +"L'URL configurato per l'ACS deve corrispondere esattamente a quando inviato. " +"Se si ha Odoo che risponde da URL multipli si può utilizzare per forzarlo ad " +"inviare un indirizzo specifico invece che rispondere al rilevamento " +"automatico." #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_res_users_saml__saml_access_token msgid "The current SAML token in use" -msgstr "" +msgstr "Token SAML attualmente in uso" #. module: auth_saml #. odoo-python From bcfd972aedbdd7092190b5098d2b7255416b3244 Mon Sep 17 00:00:00 2001 From: mymage Date: Thu, 4 Jan 2024 15:02:11 +0000 Subject: [PATCH 021/151] Translated using Weblate (Italian) Currently translated at 100.0% (20 of 20 strings) Translation: server-auth-16.0/server-auth-16.0-auth_oidc Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_oidc/it/ --- auth_oidc/i18n/it.po | 45 +++++++++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/auth_oidc/i18n/it.po b/auth_oidc/i18n/it.po index 5177448957..e1230ea652 100644 --- a/auth_oidc/i18n/it.po +++ b/auth_oidc/i18n/it.po @@ -6,69 +6,71 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2024-01-04 17:34+0000\n" +"Last-Translator: mymage \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" #. module: auth_oidc #: model:ir.model.fields,field_description:auth_oidc.field_auth_oauth_provider__flow msgid "Auth Flow" -msgstr "" +msgstr "Flusso atorizzazione" #. module: auth_oidc #: model:ir.model.fields,field_description:auth_oidc.field_auth_oauth_provider__client_secret msgid "Client Secret" -msgstr "" +msgstr "Chiave segreta client" #. module: auth_oidc #: model:ir.model.fields,field_description:auth_oidc.field_auth_oauth_provider__code_verifier msgid "Code Verifier" -msgstr "" +msgstr "Verificatore codice" #. module: auth_oidc #: model:ir.model.fields,field_description:auth_oidc.field_auth_oauth_provider__jwks_uri msgid "JWKS URL" -msgstr "" +msgstr "URL JWKS" #. module: auth_oidc #: model:auth.oauth.provider,body:auth_oidc.provider_azuread_multi #: model:auth.oauth.provider,body:auth_oidc.provider_azuread_single msgid "Log in with Microsoft" -msgstr "" +msgstr "Accedi con Mcrosoft" #. module: auth_oidc #: model:ir.model.fields.selection,name:auth_oidc.selection__auth_oauth_provider__flow__access_token msgid "OAuth2" -msgstr "" +msgstr "OAuth2" #. module: auth_oidc #: model:ir.model,name:auth_oidc.model_auth_oauth_provider msgid "OAuth2 provider" -msgstr "" +msgstr "Fornitore OAuth2" #. module: auth_oidc #: model:ir.model.fields.selection,name:auth_oidc.selection__auth_oauth_provider__flow__id_token_code msgid "OpenID Connect (authorization code flow)" -msgstr "" +msgstr "OpenID Connect (flusso codice autorizzazione)" #. module: auth_oidc #: model:ir.model.fields.selection,name:auth_oidc.selection__auth_oauth_provider__flow__id_token msgid "OpenID Connect (implicit flow, not recommended)" -msgstr "" +msgstr "OpenID Connect (flusso implicito, non raccomandato)" #. module: auth_oidc #: model:ir.model.fields,help:auth_oidc.field_auth_oauth_provider__token_endpoint msgid "Required for OpenID Connect authorization code flow." -msgstr "" +msgstr "Richiesto per flusso codice atorizzazione OpenID Connect." #. module: auth_oidc #: model:ir.model.fields,help:auth_oidc.field_auth_oauth_provider__jwks_uri msgid "Required for OpenID Connect." -msgstr "" +msgstr "Richiesto per OpenID Connect." #. module: auth_oidc #: model:ir.model.fields,help:auth_oidc.field_auth_oauth_provider__token_map @@ -77,44 +79,49 @@ msgid "" " It is important to ensure user_id and email at least are mapped. For " "OpenID Connect user_id is the sub key in the standard." msgstr "" +"Alcuni fornitori Oauth non mappano le chiavi nelle loro risposte esattamente " +"come richiesto. È importante assicurare che almeno user_id ed e-mail siano " +"mappati. Per OpenID Connect user_id è la sotto-chiave nello standard." #. module: auth_oidc #: model:ir.model.fields,field_description:auth_oidc.field_auth_oauth_provider__token_map msgid "Token Map" -msgstr "" +msgstr "Mappa token" #. module: auth_oidc #: model:ir.model.fields,field_description:auth_oidc.field_auth_oauth_provider__token_endpoint msgid "Token URL" -msgstr "" +msgstr "URL token" #. module: auth_oidc #: model:ir.model.fields,help:auth_oidc.field_auth_oauth_provider__code_verifier msgid "Used for PKCE." -msgstr "" +msgstr "Utilizzato per PKCE." #. module: auth_oidc #: model:ir.model.fields,help:auth_oidc.field_auth_oauth_provider__client_secret msgid "" "Used in OpenID Connect authorization code flow for confidential clients." msgstr "" +"Utilizzato nel flusso codice autorizzazione OpenID Connect per client " +"riservati." #. module: auth_oidc #: model:ir.model,name:auth_oidc.model_res_users msgid "User" -msgstr "" +msgstr "Utente" #. module: auth_oidc #: model:ir.model.fields,field_description:auth_oidc.field_auth_oauth_provider__validation_endpoint msgid "UserInfo URL" -msgstr "" +msgstr "URL info utente" #. module: auth_oidc #: model_terms:ir.ui.view,arch_db:auth_oidc.view_oidc_provider_form msgid "e.g from:to upn:email sub:user_id" -msgstr "" +msgstr "es. from:to upn:email sub:user_id" #. module: auth_oidc #: model:auth.oauth.provider,body:auth_oidc.local_keycloak msgid "keycloak:8080 on localhost" -msgstr "" +msgstr "keycloak:8080 su localhost" From b9f1ff8ab69637087f16dfc2122e38831018e84e Mon Sep 17 00:00:00 2001 From: mymage Date: Fri, 5 Jan 2024 07:41:28 +0000 Subject: [PATCH 022/151] Translated using Weblate (Italian) Currently translated at 100.0% (18 of 18 strings) Translation: server-auth-16.0/server-auth-16.0-auth_oauth_ropc Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_oauth_ropc/it/ --- auth_oauth_ropc/i18n/it.po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/auth_oauth_ropc/i18n/it.po b/auth_oauth_ropc/i18n/it.po index 0ba08ba715..2db10f21a6 100644 --- a/auth_oauth_ropc/i18n/it.po +++ b/auth_oauth_ropc/i18n/it.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2024-01-04 17:34+0000\n" +"PO-Revision-Date: 2024-01-05 10:34+0000\n" "Last-Translator: mymage \n" "Language-Team: none\n" "Language: it\n" @@ -79,7 +79,7 @@ msgstr "Nome" #. module: auth_oauth_ropc #: model:ir.model,name:auth_oauth_ropc.model_oauth_ropc_provider msgid "OAuth ROPC Provider" -msgstr "Fornitore ROPC OAuth" +msgstr "Provider ROPC OAuth" #. module: auth_oauth_ropc #: model:ir.model.fields,field_description:auth_oauth_ropc.field_oauth_ropc_provider__resource @@ -101,10 +101,10 @@ msgstr "Utente" #: code:addons/auth_oauth_ropc/models/oauth_ropc_provider.py:0 #, python-format msgid "You can define only one active provider" -msgstr "Si può definire attivo un solo fornitore" +msgstr "Si può definire attivo un solo provider" #. module: auth_oauth_ropc #: model:ir.actions.act_window,name:auth_oauth_ropc.oauth_ropc_provider_act_window #: model:ir.ui.menu,name:auth_oauth_ropc.oauth_ropc_provider_menu msgid "oauth ROPC Providers" -msgstr "Fornitori ROPC OAuth" +msgstr "Provider ROPC OAuth" From 6167bec660b8f54cd5d940c86a55d75aba29353d Mon Sep 17 00:00:00 2001 From: mymage Date: Fri, 5 Jan 2024 07:42:03 +0000 Subject: [PATCH 023/151] Translated using Weblate (Italian) Currently translated at 100.0% (90 of 90 strings) Translation: server-auth-16.0/server-auth-16.0-auth_saml Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_saml/it/ --- auth_saml/i18n/it.po | 60 +++++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/auth_saml/i18n/it.po b/auth_saml/i18n/it.po index f3b27efb29..c371d8d389 100644 --- a/auth_saml/i18n/it.po +++ b/auth_saml/i18n/it.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2024-01-04 17:34+0000\n" +"PO-Revision-Date: 2024-01-05 10:34+0000\n" "Last-Translator: mymage \n" "Language-Team: none\n" "Language: it\n" @@ -78,7 +78,7 @@ msgid "" "Provider). You may use the special case \"subject.nameId\" to match against " "the nameId in the IDP response." msgstr "" -"Attributo per corrispondere l'utente in Odoo con quello dell'IDP (fornitore " +"Attributo per corrispondere l'utente in Odoo con quello dell'IDP (provider " "di identità). Si può utilizzare l'opzione speciale \"subject.nameId\" per " "corrispondere al nameId nella risposta IDP." @@ -126,7 +126,7 @@ msgid "" "Configuration for this Identity Provider. Supplied by the provider, in XML " "format." msgstr "" -"Configurazine per questo frnitore di identità. Fornito dal fornitore, in " +"Configurazione per questo provider di identità. Fornito dal provider, in " "formato XML." #. module: auth_saml @@ -208,17 +208,17 @@ msgstr "Attributo risposta IDP" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__idp_metadata msgid "Identity Provider Metadata" -msgstr "Metadati fornitore identità" +msgstr "Metadati provider identità" #. module: auth_saml #: model_terms:ir.ui.view,arch_db:auth_saml.view_saml_provider_form msgid "Identity Provider Settings" -msgstr "Impostazioni fornitore identità" +msgstr "Impostazioni provider identità" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__matching_attribute msgid "Identity Provider matching attribute" -msgstr "Attributo corrsipondenza fornitore identità" +msgstr "Attributo corrsipondenza provider identità" #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_auth_saml_provider__authn_requests_signed @@ -245,7 +245,7 @@ msgstr "" #: model:ir.model.fields,help:auth_saml.field_auth_saml_provider__want_response_signed msgid "Indicates that Authentication Responses to this SP must be signed." msgstr "" -"Indica che le risposte di autenticazine a questo SP devono essere firmate." +"Indica che le risposte di autenticazione a questo SP devono essere firmate." #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_auth_saml_provider__want_assertions_or_response_signed @@ -358,7 +358,7 @@ msgstr "Impostazioni Odoo" msgid "" "Only the provider with the higher priority will be automatically redirected" msgstr "" -"Solo il fornitore con la priorità maggiore verrà inoltrato automaticamente" +"Solo il provider con la priorità maggiore verrà inoltrato automaticamente" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__sp_baseurl @@ -368,18 +368,18 @@ msgstr "Ignora URL base" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_attribute_mapping__provider_id msgid "Provider" -msgstr "Fornitore" +msgstr "Provider" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__name msgid "Provider Name" -msgstr "Nome fornitore" +msgstr "Nome provider" #. module: auth_saml #: model:ir.actions.act_window,name:auth_saml.action_saml_provider #: model_terms:ir.ui.view,arch_db:auth_saml.auth_saml_provider_view_search msgid "Providers" -msgstr "Fornitori" +msgstr "Provider" #. module: auth_saml #: model_terms:ir.ui.view,arch_db:auth_saml.view_users_form @@ -395,27 +395,27 @@ msgstr "Richiesta straordinaria SAML" #: model:ir.model.fields,field_description:auth_saml.field_res_users_saml__saml_provider_id #: model_terms:ir.ui.view,arch_db:auth_saml.view_saml_provider_form msgid "SAML Provider" -msgstr "Fornitore SAML" +msgstr "Provider SAML" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_request__saml_provider_id msgid "SAML Provider that issued the token" -msgstr "Fornitore SAML che ha emesso il token" +msgstr "Provider SAML che ha emesso il token" #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_res_users_saml__saml_uid msgid "SAML Provider user_id" -msgstr "user_id fornitore SAML" +msgstr "user_id provider SAML" #. module: auth_saml #: model:ir.ui.menu,name:auth_saml.menu_saml_providers msgid "SAML Providers" -msgstr "Fornitori SAML" +msgstr "Provider SAML" #. module: auth_saml #: model:ir.model.constraint,message:auth_saml.constraint_res_users_saml_uniq_users_saml_provider_saml_uid msgid "SAML UID must be unique per provider" -msgstr "UID SAML deve essere univoco per fornitore" +msgstr "UID SAML deve essere univoco per provider" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_res_users_saml__saml_uid @@ -425,7 +425,7 @@ msgstr "ID utente SAML" #. module: auth_saml #: model:ir.model,name:auth_saml.model_auth_saml_provider msgid "SAML2 Provider" -msgstr "Fornitore SAML2" +msgstr "Provider SAML2" #. module: auth_saml #: model:ir.model,name:auth_saml.model_auth_saml_attribute_mapping @@ -494,13 +494,15 @@ msgid "" "This database disallows users to have both passwords and SAML IDs. Error for" " logins %s" msgstr "" +"Questo database nn consente agli utenti di avere sia password che ID SAML. " +"Errore per accessi %s" #. module: auth_saml #. odoo-python #: code:addons/auth_saml/controllers/main.py:0 #, python-format msgid "Unknown provider" -msgstr "" +msgstr "Provider sconosciuto" #. module: auth_saml #: model_terms:ir.ui.view,arch_db:auth_saml.view_saml_provider_form @@ -508,56 +510,58 @@ msgid "" "Used to sign requests sent to the IDP. You can use openssl to generate a " "certificate and key." msgstr "" +"Usato per firmare le richieste inviate all'IDP. Si può utilizzare OpenSSL " +"per generare un certificato e una chiave." #. module: auth_saml #: model:ir.model,name:auth_saml.model_res_users #: model:ir.model.fields,field_description:auth_saml.field_res_users_saml__user_id msgid "User" -msgstr "" +msgstr "Utente" #. module: auth_saml #: model:ir.model,name:auth_saml.model_res_users_saml msgid "User to SAML Provider Mapping" -msgstr "" +msgstr "Mappatura tra utente e provider SAML" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__want_assertions_or_response_signed msgid "Want Assertions Or Response Signed" -msgstr "" +msgstr "Richiede conferma o risposta firmate" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__want_assertions_signed msgid "Want Assertions Signed" -msgstr "" +msgstr "Richiede conferme firmate" #. module: auth_saml #: model:ir.model.fields,field_description:auth_saml.field_auth_saml_provider__want_response_signed msgid "Want Response Signed" -msgstr "" +msgstr "Richiede risposta firmata" #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_auth_saml_provider__sign_metadata msgid "Whether metadata should be signed or not" -msgstr "" +msgstr "Se i metadata devno essere firmati o meno" #. module: auth_saml #: model:ir.model.fields,help:auth_saml.field_auth_saml_provider__sign_authenticate_requests msgid "Whether the request should be signed or not" -msgstr "" +msgstr "Se la richiesta deve essere firmata o meno" #. module: auth_saml #. odoo-python #: code:addons/auth_saml/controllers/main.py:0 #, python-format msgid "You do not have access to this database. Please contact support." -msgstr "" +msgstr "Non si ha accesso a questo database. Contattare il supporto." #. module: auth_saml #: model_terms:ir.ui.view,arch_db:auth_saml.view_saml_provider_form msgid "Your ACS url will be base_url + /auth_saml/signin" -msgstr "" +msgstr "Il suo URL ACS sarà base_url + /auth_saml/signin" #. module: auth_saml #: model_terms:ir.ui.view,arch_db:auth_saml.view_saml_provider_form msgid "Your provider will give you this XML once configured." -msgstr "" +msgstr "Il suo provider fornirà questo XML una volta configurato." From 951dc98836135ee62a7bf752d506983a140c3cf3 Mon Sep 17 00:00:00 2001 From: mymage Date: Fri, 5 Jan 2024 07:40:46 +0000 Subject: [PATCH 024/151] Translated using Weblate (Italian) Currently translated at 100.0% (20 of 20 strings) Translation: server-auth-16.0/server-auth-16.0-auth_oidc Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_oidc/it/ --- auth_oidc/i18n/it.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/auth_oidc/i18n/it.po b/auth_oidc/i18n/it.po index e1230ea652..e4f38a45a8 100644 --- a/auth_oidc/i18n/it.po +++ b/auth_oidc/i18n/it.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2024-01-04 17:34+0000\n" +"PO-Revision-Date: 2024-01-05 10:34+0000\n" "Last-Translator: mymage \n" "Language-Team: none\n" "Language: it\n" @@ -50,7 +50,7 @@ msgstr "OAuth2" #. module: auth_oidc #: model:ir.model,name:auth_oidc.model_auth_oauth_provider msgid "OAuth2 provider" -msgstr "Fornitore OAuth2" +msgstr "Provider OAuth2" #. module: auth_oidc #: model:ir.model.fields.selection,name:auth_oidc.selection__auth_oauth_provider__flow__id_token_code @@ -79,7 +79,7 @@ msgid "" " It is important to ensure user_id and email at least are mapped. For " "OpenID Connect user_id is the sub key in the standard." msgstr "" -"Alcuni fornitori Oauth non mappano le chiavi nelle loro risposte esattamente " +"Alcuni Provider Oauth non mappano le chiavi nelle loro risposte esattamente " "come richiesto. È importante assicurare che almeno user_id ed e-mail siano " "mappati. Per OpenID Connect user_id è la sotto-chiave nello standard." From 7e41c176816e9ba9513ea5ac263dbdb2f122840a Mon Sep 17 00:00:00 2001 From: Denis Leemann Date: Wed, 3 Jan 2024 10:17:32 +0100 Subject: [PATCH 025/151] FIX auth_saml: password reset when deactivating the config settings --- auth_saml/models/ir_config_parameter.py | 10 ++++++++++ auth_saml/tests/test_pysaml.py | 25 ++++++++++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/auth_saml/models/ir_config_parameter.py b/auth_saml/models/ir_config_parameter.py index 9fb503afac..dd8677d0fa 100644 --- a/auth_saml/models/ir_config_parameter.py +++ b/auth_saml/models/ir_config_parameter.py @@ -27,3 +27,13 @@ def write(self, vals): if self.filtered(lambda param: param.key == ALLOW_SAML_UID_AND_PASSWORD): self.env["res.users"].allow_saml_and_password_changed() return result + + def unlink(self): + """Redefined to update users when our parameter is deleted.""" + param_saml = self.filtered( + lambda param: param.key == ALLOW_SAML_UID_AND_PASSWORD + ) + result = super().unlink() + if result and param_saml: + self.env["res.users"].allow_saml_and_password_changed() + return result diff --git a/auth_saml/tests/test_pysaml.py b/auth_saml/tests/test_pysaml.py index c05235b747..7549e2546f 100644 --- a/auth_saml/tests/test_pysaml.py +++ b/auth_saml/tests/test_pysaml.py @@ -198,7 +198,7 @@ def test_login_with_saml(self): # User should now be able to log in with the token self.authenticate(user="test@example.com", password=token) - def test_disallow_user_password_when_changing_setting(self): + def test_disallow_user_password_when_changing_ir_config_parameter(self): """Test that disabling users from having both a password and SAML ids remove users password.""" # change the option @@ -336,3 +336,26 @@ def test_redirect_after_login(self): self.base_url() + "/web#action=37&model=ir.module.module&view_type=kanban&menu_id=5", ) + + def test_disallow_user_password_when_changing_settings(self): + """Test that disabling the setting will remove passwords from related users""" + # We activate the settings to allow password login + self.env["res.config.settings"].create( + { + "allow_saml_uid_and_internal_password": True, + } + ).execute() + + # Test the user can login with the password + self.authenticate(user="user@example.com", password="NesTNSte9340D720te>/-A") + + self.env["res.config.settings"].create( + { + "allow_saml_uid_and_internal_password": False, + } + ).execute() + + with self.assertRaises(AccessDenied): + self.authenticate( + user="user@example.com", password="NesTNSte9340D720te>/-A" + ) From b4a2f0e3263ef6348cbd89a83f5952697c1d543c Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Mon, 8 Jan 2024 15:07:55 +0000 Subject: [PATCH 026/151] [BOT] post-merge updates --- README.md | 2 +- auth_saml/README.rst | 2 +- auth_saml/__manifest__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0a41fe8a15..df694981e5 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ addon | version | maintainers | summary [auth_oauth_ropc](auth_oauth_ropc/) | 16.0.1.0.0 | | Allow to login with OAuth Resource Owner Password Credentials Grant [auth_oidc](auth_oidc/) | 16.0.1.0.2 | [![sbidoul](https://github.com/sbidoul.png?size=30px)](https://github.com/sbidoul) | Allow users to login through OpenID Connect Provider [auth_oidc_environment](auth_oidc_environment/) | 16.0.1.0.0 | | This module allows to use server env for OIDC configuration -[auth_saml](auth_saml/) | 16.0.1.0.3 | [![vincent-hatakeyama](https://github.com/vincent-hatakeyama.png?size=30px)](https://github.com/vincent-hatakeyama) | SAML2 Authentication +[auth_saml](auth_saml/) | 16.0.1.0.4 | [![vincent-hatakeyama](https://github.com/vincent-hatakeyama.png?size=30px)](https://github.com/vincent-hatakeyama) | SAML2 Authentication [auth_session_timeout](auth_session_timeout/) | 16.0.1.0.0 | | This module disable all inactive sessions since a given delay [auth_signup_verify_email](auth_signup_verify_email/) | 16.0.1.0.0 | | Force uninvited users to use a good email for signup [auth_user_case_insensitive](auth_user_case_insensitive/) | 16.0.1.0.0 | | Makes the user login field case insensitive diff --git a/auth_saml/README.rst b/auth_saml/README.rst index ade85034a7..ea6b223ea1 100644 --- a/auth_saml/README.rst +++ b/auth_saml/README.rst @@ -7,7 +7,7 @@ SAML2 Authentication !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:1e046a7179ace3d0932313947c9156983197334815735ec52428916f26e3d354 + !! source digest: sha256:3fcac74e9beda7cf4b033bd925615869ba6499576aabc948428f2cce34b6b790 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/auth_saml/__manifest__.py b/auth_saml/__manifest__.py index 102f9dd209..ef4f1bb564 100644 --- a/auth_saml/__manifest__.py +++ b/auth_saml/__manifest__.py @@ -4,7 +4,7 @@ { "name": "SAML2 Authentication", - "version": "16.0.1.0.3", + "version": "16.0.1.0.4", "category": "Tools", "author": "XCG Consulting, Odoo Community Association (OCA)", "maintainers": ["vincent-hatakeyama"], From f84c7f286316ce8e3a61a6bcf9352f570ba77b06 Mon Sep 17 00:00:00 2001 From: Francesco Foresti Date: Mon, 29 Jan 2024 09:01:26 +0000 Subject: [PATCH 027/151] Translated using Weblate (Italian) Currently translated at 100.0% (64 of 64 strings) Translation: server-auth-16.0/server-auth-16.0-auth_jwt Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_jwt/it/ --- auth_jwt/i18n/it.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/auth_jwt/i18n/it.po b/auth_jwt/i18n/it.po index ee29f1a08b..9d3c3da001 100644 --- a/auth_jwt/i18n/it.po +++ b/auth_jwt/i18n/it.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2024-01-03 14:33+0000\n" -"Last-Translator: mymage \n" +"PO-Revision-Date: 2024-01-29 11:35+0000\n" +"Last-Translator: Francesco Foresti \n" "Language-Team: none\n" "Language: it\n" "MIME-Version: 1.0\n" @@ -192,7 +192,7 @@ msgstr "Ultima modifica il" #. module: auth_jwt #: model:ir.model.fields,field_description:auth_jwt.field_auth_jwt_validator__write_uid msgid "Last Updated by" -msgstr "Ultimo aggiornamento da" +msgstr "Ultimo aggiornamento di" #. module: auth_jwt #: model:ir.model.fields,field_description:auth_jwt.field_auth_jwt_validator__write_date From 30f51cbaee5194af776a7a0a0c53e7c10bc62590 Mon Sep 17 00:00:00 2001 From: Florent de Labarre Date: Mon, 18 Jul 2016 22:50:01 +0200 Subject: [PATCH 028/151] [add] auth_oauth_multi_token Allow multiple oauth login at the same time. --- auth_oauth_multi_token/LICENSE | 230 ++++++++++++++++++ auth_oauth_multi_token/README.rst | 30 +++ auth_oauth_multi_token/__init__.py | 1 + auth_oauth_multi_token/__openerp__.py | 19 ++ auth_oauth_multi_token/models/__init__.py | 2 + .../models/auth_oauth_multi_token.py | 29 +++ auth_oauth_multi_token/models/res_users.py | 51 ++++ .../security/ir.model.access.csv | 2 + auth_oauth_multi_token/views/res_users.xml | 31 +++ 9 files changed, 395 insertions(+) create mode 100644 auth_oauth_multi_token/LICENSE create mode 100644 auth_oauth_multi_token/README.rst create mode 100644 auth_oauth_multi_token/__init__.py create mode 100644 auth_oauth_multi_token/__openerp__.py create mode 100644 auth_oauth_multi_token/models/__init__.py create mode 100644 auth_oauth_multi_token/models/auth_oauth_multi_token.py create mode 100644 auth_oauth_multi_token/models/res_users.py create mode 100644 auth_oauth_multi_token/security/ir.model.access.csv create mode 100644 auth_oauth_multi_token/views/res_users.xml diff --git a/auth_oauth_multi_token/LICENSE b/auth_oauth_multi_token/LICENSE new file mode 100644 index 0000000000..6cdf122f2d --- /dev/null +++ b/auth_oauth_multi_token/LICENSE @@ -0,0 +1,230 @@ +GNU AFFERO GENERAL PUBLIC LICENSE + +Version 3, 19 November 2007 + +Copyright © 2007 Free Software Foundation, Inc. +Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. + +Preamble + +The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software. + +The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. + +Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software. + +A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public. + +The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version. + +An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license. + +The precise terms and conditions for copying, distribution and modification follow. + +TERMS AND CONDITIONS + +0. Definitions. + +"This License" refers to version 3 of the GNU Affero General Public License. + +"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. + +"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. + +To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. + +A "covered work" means either the unmodified Program or a work based on the Program. + +To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. + +To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. + +An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. + +1. Source Code. + +The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. + +A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. + +The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. + +The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. + +The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. + +The Corresponding Source for a work in source code form is that same work. + +2. Basic Permissions. + +All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. + +You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. + +Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. + +3. Protecting Users' Legal Rights From Anti-Circumvention Law. + +No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. + +When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. + +4. Conveying Verbatim Copies. + +You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. + +You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. + +5. Conveying Modified Source Versions. + +You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: + +a) The work must carry prominent notices stating that you modified it, and giving a relevant date. +b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". +c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. +d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. +A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. + +6. Conveying Non-Source Forms. + +You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: + +a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. +b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. +c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. +d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. +e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. +A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. + +A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. + +"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. + +If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). + +The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. + +Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. + +7. Additional Terms. + +"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. + +When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. + +Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: + +a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or +b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or +c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or +d) Limiting the use for publicity purposes of names of licensors or authors of the material; or +e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or +f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. +All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. + +If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. + +Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. + +8. Termination. + +You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). + +However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. + +Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. + +Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. + +9. Acceptance Not Required for Having Copies. + +You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. + +10. Automatic Licensing of Downstream Recipients. + +Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. + +An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. + +You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. + +11. Patents. + +A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". + +A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. + +Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. + +In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. + +If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. + +If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. + +A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. + +Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. + +12. No Surrender of Others' Freedom. + +If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. + +13. Remote Network Interaction; Use with the GNU General Public License. + +Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph. + +Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License. + +14. Revised Versions of this License. + +The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation. + +If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. + +Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. + +15. Disclaimer of Warranty. + +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +16. Limitation of Liability. + +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +17. Interpretation of Sections 15 and 16. + +If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. + +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +Also add information on how to contact you by electronic and paper mail. + +If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements. + +You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see . diff --git a/auth_oauth_multi_token/README.rst b/auth_oauth_multi_token/README.rst new file mode 100644 index 0000000000..183f820a52 --- /dev/null +++ b/auth_oauth_multi_token/README.rst @@ -0,0 +1,30 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +==================================== +Odoo multi connection with oauth +==================================== + +This module add the possibility to connect on multi divices in same time with Google, Facebook authentification. + + +Contributors +------------ + +* Florent de Labarre + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +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. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/auth_oauth_multi_token/__init__.py b/auth_oauth_multi_token/__init__.py new file mode 100644 index 0000000000..bff786c088 --- /dev/null +++ b/auth_oauth_multi_token/__init__.py @@ -0,0 +1 @@ +import models diff --git a/auth_oauth_multi_token/__openerp__.py b/auth_oauth_multi_token/__openerp__.py new file mode 100644 index 0000000000..ddff5ff07c --- /dev/null +++ b/auth_oauth_multi_token/__openerp__.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# See LICENSE file for full copyright and licensing details. + +{ + 'name': 'auth_oauth_multi_token', + 'version': '1.0', + 'license': 'AGPL-3', + 'author': "Florent de Labarre, Odoo Community Association (OCA)", + 'summary': 'Multi token connection', + 'category': 'Tool', + 'website': 'www.iguana-yachts.com', + 'depends': ['auth_oauth'], + 'data': [ + 'views/res_users.xml', + 'security/ir.model.access.csv', + ], + 'installable': True, + 'auto_install': False, +} diff --git a/auth_oauth_multi_token/models/__init__.py b/auth_oauth_multi_token/models/__init__.py new file mode 100644 index 0000000000..a0e6deef19 --- /dev/null +++ b/auth_oauth_multi_token/models/__init__.py @@ -0,0 +1,2 @@ +import auth_oauth_multi_token +import res_users diff --git a/auth_oauth_multi_token/models/auth_oauth_multi_token.py b/auth_oauth_multi_token/models/auth_oauth_multi_token.py new file mode 100644 index 0000000000..f70ac33c84 --- /dev/null +++ b/auth_oauth_multi_token/models/auth_oauth_multi_token.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# Florent de Labarre - 2016 + +from openerp import api, fields, models + + +class auth_oauth_multi_token(models.Model): + """Class defining list of tokens""" + + _name = 'auth.oauth.multi.token' + _description = 'OAuth2 token' + _order = "id desc" + + oauth_access_token = fields.Char('OAuth Access Token', readonly=True, copy=False) + user_id = fields.Many2one('res.users', 'User', required=True) + active_token = fields.Boolean('Active') + + @api.model + def create(self, vals): + res = super(auth_oauth_multi_token, self).create(vals) + oauth_access_token_ids = self.search([('user_id', '=', vals['user_id']), ('active_token', '=', True)], ).ids + oauth_access_max_token = self.env['res.users'].search([('id', '=', vals['user_id'])], limit=1).oauth_access_max_token + if len(oauth_access_token_ids) >= oauth_access_max_token: + self.browse(oauth_access_token_ids[oauth_access_max_token]).write({ + 'oauth_access_token': "****************************", + 'active_token': False}) + return res + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/auth_oauth_multi_token/models/res_users.py b/auth_oauth_multi_token/models/res_users.py new file mode 100644 index 0000000000..0307b291ec --- /dev/null +++ b/auth_oauth_multi_token/models/res_users.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +# Florent de Labarre - 2016 + +import openerp +from openerp import api, fields, models + + +class ResUsers(models.Model): + _inherit = 'res.users' + + oauth_access_token_ids = fields.One2many('auth.oauth.multi.token', 'user_id', 'Tokens', copy=False) + oauth_access_max_token = fields.Integer('Number of simultaneous connections', default=5, required=True) + + @api.model + def _auth_oauth_signin(self, provider, validation, params): + res = super(ResUsers, self)._auth_oauth_signin(provider, validation, params) + + oauth_uid = validation['user_id'] + user_ids = self.search([('oauth_uid', '=', oauth_uid), ('oauth_provider_id', '=', provider)]).ids + if not user_ids: + raise openerp.exceptions.AccessDenied() + assert len(user_ids) == 1 + + self.oauth_access_token_ids.create({'user_id': user_ids[0], + 'oauth_access_token': params['access_token'], + 'active_token': True, + }) + return res + + @api.multi + def clear_token(self): + for users in self: + for token in users.oauth_access_token_ids: + token.write({ + 'oauth_access_token': "****************************", + 'active_token': False}) + + @api.model + def check_credentials(self, password): + try: + return super(ResUsers, self).check_credentials(password) + except openerp.exceptions.AccessDenied: + res = self.env['auth.oauth.multi.token'].sudo().search([ + ('user_id', '=', self.env.uid), + ('oauth_access_token', '=', password), + ('active_token', '=', True), + ]) + if not res: + raise + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/auth_oauth_multi_token/security/ir.model.access.csv b/auth_oauth_multi_token/security/ir.model.access.csv new file mode 100644 index 0000000000..6d4dbbc131 --- /dev/null +++ b/auth_oauth_multi_token/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_auth_oauth_multi_token,auth_oauth_multi_token,model_auth_oauth_multi_token,base.group_system,1,1,1,1 diff --git a/auth_oauth_multi_token/views/res_users.xml b/auth_oauth_multi_token/views/res_users.xml new file mode 100644 index 0000000000..32bbbc74a7 --- /dev/null +++ b/auth_oauth_multi_token/views/res_users.xml @@ -0,0 +1,31 @@ + + + + + multi.token.res.users.form + res.users + form + + + + + + + + + + + + + + + + + +