Changes between Version 55 and Version 56 of BluePrintAuthenticationAccess
- Timestamp:
- 05/14/09 21:07:21 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrintAuthenticationAccess
v55 v56 60 60 There are 3 modes for Authorisation right now:[[BR]] 61 61 * simple: 62 * Anonymous access is currently granted for all Read operations 63 * Create/Update/Delete requiring a user to be Authenticated 64 * table: 65 * Uses Web2Py's Role-Based Access Control for table-level control (can be separated for C/R/U/D) 66 * record: 67 * Uses Web2Py's Role-Based Access Control for record-level control (can be separated for C/R/U/D): http://groups.google.com/group/web2py/browse_thread/thread/e4b54f08ec6b66f9 62 * Anonymous access is granted for all Read operations 63 * Create/Update/Delete requires a user to be Authenticated 64 * full: 65 * Uses Web2Py's Role-Based Access Control for table-level &/or record-level control (can be separated for C/R/U/D) 66 * http://groups.google.com/group/web2py/browse_thread/thread/e4b54f08ec6b66f9 68 67 69 NB ' table' & 'record' modesrequires each permission to be explicitly granted.[[BR]]70 For 'table' mode, we default to having all registered users as 'Readers'& only 'Administrators' being able to Create/Update/Delete. Administrators can manually add other users to 'Editors' if-required.[[BR]]68 NB 'full' mode requires each permission to be explicitly granted.[[BR]] 69 We default to having all 'Authenticated' users able to Reade & only 'Administrators' being able to Create/Update/Delete. Administrators can manually add other users to 'Editors' if-required.[[BR]] 71 70 Modules can provide further restrictions in {{{models/zzz.py}}} 72 73 'record' mode currently has no framework support to ease administration & hence isn't yet recommended.74 71 75 72 Whether a user is authorised or not is defined using {{{has_permission()}}} in {{{models/__db.py}}} & called by the [wiki:BluePrintREST RESTlike controller] 76 73 77 74 We use {{{auth_group}}} table for Roles & {{{auth_membership}}} to show which roles a user has. 78 * admin role initialised in {{{_ db.py}}}75 * admin role initialised in {{{__db.py}}} 79 76 * 1st user to register gets Administrator role 80 77