Changes between Version 20 and Version 21 of BluePrintAuthenticationAccess
- Timestamp:
- 01/09/09 08:17:38 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrintAuthenticationAccess
v20 v21 4 4 Authorization provides controlled access to protected resources. 5 5 6 === Requirements === 6 7 We want to be able to provide a simple way of setting the overall security policy - allowing for flexible deployment options. 7 8 * Anonymous access is granted for all Read operations, with Create/Update/Delete requiring a user to be Authenticated … … 15 16 * C/R/U/D permissions distinct 16 17 18 The specification we should be working to implement is in the Wiki: 19 * Proposed Trunk: http://wiki.sahana.lk/doku.php?id=dev:new_acl 20 * Current Stable: http://wiki.sahana.lk/doku.php?id=dev:security 21 * Old: http://wiki.sahana.lk/doku.php?id=dev:authorization 22 (NB The Vol module currently uses a separate method) 17 23 24 We also want to look at linking the AAA t2_person table with the Person Registry's person table 25 26 S2 supports OpenID (as does Launchpad ;) ), so that would be good to support & looks easy: 27 * http://openidenabled.com/python-openid/ 28 29 === Implementation === 18 30 S3 builds on the default T2 AAA system: 19 31 * http://trac.sahana3.org/wiki/DeveloperGuidelinesAuthenticationAccess … … 40 52 Membership of roles is controlled via the Many-to-Many table: {{{s3_roleholder}}} 41 53 42 43 The specification we should be working to implement is in the Wiki:44 * Proposed Trunk: http://wiki.sahana.lk/doku.php?id=dev:new_acl45 * Current Stable: http://wiki.sahana.lk/doku.php?id=dev:security46 * Old: http://wiki.sahana.lk/doku.php?id=dev:authorization47 (NB The Vol module currently uses a separate method)48 49 We also want to look at linking the AAA t2_person table with the Person Registry's person table50 51 S2 supports OpenID (as does Launchpad ;) ), so that would be good to support & looks easy:52 * http://openidenabled.com/python-openid/53 54 54 T3 defines a simple {{{t2.is_admin}}} defined in {{{db.py}}}: 55 55 {{{ … … 59 59 * Function components protected with: {{{if not is_admin: t2.redirect('index',flash=T('Not Authorised'))}}} 60 60 * appadmin protected in the same way :) 61 61 === Links === 62 62 * Working with Realms, Users, Groups, and Roles: http://java.sun.com/javaee/5/docs/tutorial/doc/bnbxj.html 63 63 * Zope uses: {{{has_permission(permission_name, view_or_controller)}}} and/or {{{user.has_role(custom_role)}}} methods