Commit Graph

193 Commits

Author SHA1 Message Date
Mikaël Ates 42e1dc9a5e Defining API in progress.
Works consisting in defining a clean API, then moving administration
functions from view to core, in progress.

- Functions to test, set and remove policy root administrators
2011-06-08 18:04:12 +02:00
Mikaël Ates 01a87309d1 Modify creation policy function:
- raise exception
- else return the (policy, policy_created)
- added the boolean argument 'restore' to the function. By default is True.
New the function can be used to restor the necessary objects of an existing
policy. If put to False, force to have all the objects created freshly.

create_policy view modified as a consequence.

Works consisting in defining a clean API, then moving administration
functions from view to core, are beginning.
- Added set_root_administrator and remove_root_administrator functions.
- Modified empower or downgrade root user view as a consequence
2011-06-08 16:04:18 +02:00
Mikaël Ates a0c4a7876c Implementation of permission delegation
---------------------------------------

- Enable users for delegation of its permissions

- When a permission is given, it is tagged as delegable or not

- A user enabled for delegation can delegate every access it has if
the permission given the access is delegable

- When a permission is delegated, the grantor tells if that permission
may be delegated by the grantee
- When a permission is deleted, all the permissions given by delegation
from this permission are also deleted

- comming soon: time-limited permissions and delegations
2011-06-08 10:48:19 +02:00
Mikaël Ates 99643906e6 Allow to define objects with regular expressions 2011-06-01 19:48:45 +02:00
Mikaël Ates ae13280ecf Function to request a decision with names and a namespace 2011-05-31 23:05:50 +02:00
Mikaël Ates f1b933ac5d Fix last fix 2011-05-27 18:17:29 +02:00
Mikaël Ates 745f6ffe46 Fix administration rights checking 2011-05-27 18:14:51 +02:00
Mikaël Ates 3adbb09419 Split files and PEP 2011-05-27 12:19:21 +02:00
Mikaël Ates d6e942a551 Permit to add user alias without having a corresponding user 2011-05-26 18:02:29 +02:00
Mikaël Ates 74fa4443b8 Support django user modification 2011-05-26 17:07:33 +02:00
Mikaël Ates 888ed5d7b3 Handle 'cancel' in forms add_admin_role and view 2011-05-26 16:48:45 +02:00
Mikaël Ates a7ea587a92 Capture missing dependencies to draw graph 2011-05-26 16:43:13 +02:00
Mikaël Ates 1b5a5c5f3e Prompt for password at the user creation stage in the initialization script 2011-05-26 16:29:27 +02:00
Mikaël Ates 4b8bbbcf9c Delete unecessary files 2011-05-26 16:04:48 +02:00
Mikaël Ates 9e1703b6fe Bits of documentation 2011-05-26 16:02:09 +02:00
Mikaël Ates 3475b854e0 Adapt templates to the new style 2011-05-26 12:24:01 +02:00
Mikaël Ates ef796e472f Display main pages with custom tabs 2011-05-26 12:07:37 +02:00
Mikaël Ates a6d4a8f990 Helper functions to add user aliases in policies 2011-05-26 11:06:25 +02:00
Mikaël Ates 35b6bfc2a3 Remove unnecessary control for alias deletion 2011-05-25 23:24:18 +02:00
Mikaël Ates 2c435c1fb9 Bugfix on role tree intialization in RBAC0 2011-05-25 22:59:28 +02:00
Mikaël Ates 44af694721 Graph display revival 2011-05-25 18:11:26 +02:00
Mikaël Ates 300cdcd018 Split files and cleaning 2011-05-25 15:30:15 +02:00
Mikaël Ates 8094239555 Bits of PEPs 2011-05-25 14:47:52 +02:00
Mikaël Ates 9b4f57bcbe Bits of PEPs 2011-05-25 14:46:16 +02:00
Mikaël Ates 66b620993d Bits of PEPs 2011-05-25 14:42:39 +02:00
Mikaël Ates 002d5a2631 Bits of PEPs 2011-05-25 14:40:53 +02:00
Mikaël Ates 092be28d85 Bits of PEPs 2011-05-25 14:39:44 +02:00
Mikaël Ates 2bbf337671 Remove deprecated has_key() 2011-05-25 14:30:58 +02:00
Mikaël Ates c701fc6a97 Ask decision view and corrections on deletion functions 2011-05-25 13:15:02 +02:00
Mikaël Ates 4338899b5f Clean unecessary models and functions 2011-05-25 10:29:47 +02:00
Mikaël Ates 030b7d10c8 Display special roles on policy admin page 2011-05-24 17:41:22 +02:00
Mikaël Ates 5806bfb2e2 Use UserAlias and not User to check policy administrators 2011-05-24 17:23:54 +02:00
Mikaël Ates 4411b95cdd Customize main views 2011-05-24 16:54:15 +02:00
Mikaël Ates cec8ffe84b Administration permissions and administration roles and views management 2011-05-24 13:58:48 +02:00
Mikaël Ates 430a8adc1b Manage admin permission management and adding of role and administration views 2011-05-23 23:05:21 +02:00
Mikaël Ates d3490d06a7 Update permissions into policy management 2011-05-23 18:11:59 +02:00
Mikaël Ates 799863c1b3 Update entities into policy management 2011-05-23 16:41:41 +02:00
Mikaël Ates 36e42b58b4 Update management in policy 2011-05-23 10:19:11 +02:00
Mikaël Ates 9e5abe1df1 Manage predefined roles for policy administration 2011-05-20 19:03:40 +02:00
Mikaël Ates 0331973466 Correct initialization script 2011-05-20 17:13:19 +02:00
Mikaël Ates 39d760c41c Encoding latin-1 2011-05-20 17:12:46 +02:00
Mikaël Ates b6467c899e Remove specific management of the special role user administrator 2011-05-20 17:11:56 +02:00
Mikaël Ates 9022d2cc34 Lots of things:
- Switch licence to AGPL and add headers
- Remove the concept of ACS admin
- Add the policy management - The default policy is the policy of access control on other policies
- Add the aliases management - A Django user exist in policies with an alias. Every administrator as thus an alias in the default policy.
2011-05-20 16:15:55 +02:00
Mikaël Ates c719687724 Beginning of works to display and handle multiple policies within the global policy 2011-05-09 18:32:34 +02:00
Mikaël Ates d6312441dc Split normal roles and roles for administration 2011-05-09 16:12:35 +02:00
Mikaël Ates 76fe24442a Fix bug previously introduced 2011-05-09 14:24:07 +02:00
Mikaël Ates 44a9dd004c Remove find_xxx horrible functions 2011-05-09 14:17:18 +02:00
Mikaël Ates 9580dc740e Correct display bug 2011-05-09 11:47:18 +02:00
Mikaël Ates 5b2e3d500f Correct acs initialization bug. 2011-05-09 11:46:55 +02:00
Mikaël Ates 8c735f8f84 Use decorator to protect views and use get_system_view function 2011-05-09 11:30:03 +02:00