Home | Trees | Indices | Help |
|
---|
|
gluon.tools.Auth --+ | AuthS3
S3 extensions of the gluon.tools.Auth class
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
Initialise parent class & make any necessary modifications |
|
to be called unless tables are defined manually usages: # defines all needed tables and table files # UUID + "_auth_user.table", ... auth.define_tables() # defines all needed tables and table files # "myprefix_auth_user.table", ... auth.define_tables(migrate="myprefix_") # defines all needed tables without migration/table files auth.define_tables(migrate=False) |
Logs user in
|
Set a Cookie to the client browser so that we know this user has registered & so we should present them with a login form instead of a register form |
Overrides Web2Py's login() to use custom flash styles & utcnow
|
Overrides Web2Py's register() to add new functionality:
|
S3 framework function Designed to be used as an onaccept callback for register() Whenever someone registers, it:
|
Links user accounts to person registry entries Policy for linking to pre-existing person records: If and only if:
otherwise:
|
Returns the Approver for a new Registration & the organisation_id field |
action user to verify the registration email, XXXXXXXXXXXXXXXX .. method:: Auth.verify_email([next=DEFAULT [, onvalidation=DEFAULT [, onaccept=DEFAULT [, log=DEFAULT]]]]) |
Updates the staff's memberships of the roles associated with the organisation and/or site instance record which the staff is a component of Called from onaccept & ondelete |
Returns the prefix, resource and id which a site refers to To Do: Should this functionality be shifted to the super entity code? (But then can't be visible from Auth) |
Check whether the user is currently logged-in - tries Basic if not |
Check whether the currently logged-in user has a role
|
Get a list of members of a group
|
Get the person_id for a given user_id
Note: unsafe method - do not expose to users |
Get the user_id for a given person_id
Note: unsafe method - do not expose to users |
Get the person record ID for the current logged-in user |
S3 framework function to define whether a user can access a record in manner "method" Designed to be called from the RESTlike controller
Note: This is planned to be rewritten: http://eden.sahanafoundation.org/wiki/BluePrintAuthorization |
Returns a query with all accessible records for the current logged in user Note: This method does not work on GAE because it uses JOIN and IN |
Checks if user is member of group_id or role Extends Web2Py's requires_membership() to add new functionality:
|
Checks if user is member of group_id or role Extends Web2Py's requires_membership() to add new functionality:
|
Decorator that prevents access to action if not logged in or if user logged in is not a member of group_id. If role is provided instead of group_id then the group_id is calculated. Extends Web2Py's requires_membership() to add new functionality:
|
Decorator that prevents access to action if not logged in or if user logged in is not a member of group_id. If role is provided instead of group_id then the group_id is calculated. Extends Web2Py's requires_membership() to add new functionality:
|
Back-end method to create roles with ACLs |
Back-end method to update an ACL |
Makes the current session owner of this record |
Checks whether the current session owns a record |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Mar 29 14:25:41 2011 | http://epydoc.sourceforge.net |