forked from OCA/server-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request OCA#507 from OCA/18.0
Syncing from upstream OCA/server-auth (18.0)
- Loading branch information
Showing
36 changed files
with
1,608 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
================== | ||
Auth API key group | ||
================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:0c31510542f8db0a00b4350e1c264507309a97ecdfbf7b53e0e0bfb6572f0782 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Beta | ||
.. |badge2| image:: https://img.shields.io/badge/licence-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/18.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-18-0/server-auth-18-0-auth_api_key_group | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-auth&target_branch=18.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
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. | ||
|
||
The migration of this module from 17.0 to 18.0 was financially supported | ||
by Camptocamp. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-auth/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/server-auth/issues/new?body=module:%20auth_api_key_group%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
------- | ||
|
||
* Camptocamp | ||
|
||
Contributors | ||
------------ | ||
|
||
- Simone Orsi <[email protected]> | ||
- Son Ho [email protected] | ||
- Thien Vo Hong <[email protected]> | ||
|
||
Other credits | ||
------------- | ||
|
||
The migration of this module from 16.0 to 17.0 was financially supported | ||
by Camptocamp | ||
|
||
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 <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-simahawk| | ||
|
||
This module is part of the `OCA/server-auth <https://github.com/OCA/server-auth/tree/18.0/auth_api_key_group>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright 2021 Camptocamp SA | ||
# @author: Simone Orsi <[email protected]> | ||
# 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": "18.0.1.0.0", | ||
"development_status": "Beta", | ||
"license": "LGPL-3", | ||
"website": "https://github.com/OCA/server-auth", | ||
"author": "Camptocamp,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", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * auth_api_key_group | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 18.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_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_group__id | ||
msgid "ID" | ||
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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * auth_api_key_group | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2024-04-03 12:43+0000\n" | ||
"Last-Translator: mymage <[email protected]>\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_group | ||
#: model:ir.model,name:auth_api_key_group.model_auth_api_key | ||
msgid "API Key" | ||
msgstr "Chiave API" | ||
|
||
#. module: auth_api_key_group | ||
#: model:ir.model,name:auth_api_key_group.model_auth_api_key_group | ||
msgid "API Key auth group" | ||
msgstr "Gruppo autorizzazione chiave API" | ||
|
||
#. 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 "Chiavi API" | ||
|
||
#. 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 "Gruppi autorizzazione chiave API" | ||
|
||
#. 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 "Gruppi autorizzazione" | ||
|
||
#. module: auth_api_key_group | ||
#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key_group__code | ||
msgid "Code" | ||
msgstr "Codice" | ||
|
||
#. 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 "Creato da" | ||
|
||
#. 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 "Creato il" | ||
|
||
#. module: auth_api_key_group | ||
#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key_group__display_name | ||
msgid "Display Name" | ||
msgstr "Nome visualizzato" | ||
|
||
#. module: auth_api_key_group | ||
#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key_group__id | ||
msgid "ID" | ||
msgstr "ID" | ||
|
||
#. 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 "Ultimo aggiornamento di" | ||
|
||
#. 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 "Ultimo aggiornamento il" | ||
|
||
#. module: auth_api_key_group | ||
#: model:ir.model.fields,field_description:auth_api_key_group.field_auth_api_key_group__name | ||
msgid "Name" | ||
msgstr "Nome" | ||
|
||
#~ msgid "Last Modified on" | ||
#~ msgstr "Ultima modifica il" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import auth_api_key | ||
from . import auth_api_key_group |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright 2021 Camptocamp SA | ||
# @author: Simone Orsi <[email protected]> | ||
# 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", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright 2021 Camptocamp SA | ||
# @author: Simone Orsi <[email protected]> | ||
# 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", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- Simone Orsi \<<[email protected]>\> | ||
- Son Ho <[email protected]> | ||
- Thien Vo Hong \<<[email protected]>\> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The migration of this module from 16.0 to 17.0 was financially supported by Camptocamp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
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. | ||
|
||
The migration of this module from 17.0 to 18.0 was financially supported by Camptocamp. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.