The main purpose of the reworked Auth system is to allow per experiment permissions to exist allowing a richer web experience. Because of this the permissions are applied on a per experiment basis with a few predefined roles.
Roles are applied through the web using the Control Panel and can be applied to either users or groups.
To make an experiment public requires and explicit publish action.
In the settings.py user providers are activated by specifying them within the USER_PROVIDERS variable:
USER_PROVIDERS = ('tardis.tardis_portal.auth.localdb_auth.DjangoUserProvider',)
In the settings.py group providers are activated by specifying them within the GROUP_PROVIDERS variable:
GROUP_PROVIDERS = ('tardis.tardis_portal.auth.localdb_auth.DjangoGroupProvider',
'tardis.tardis_portal.auth.vbl_auth.VblGroupProvider',)
The AuthService provides an interface for querying the auth(n|z) framework within MyTARDIS. The auth service works by reading the class path to plugins from the settings file.
Parameters: | settings (django.conf.settings) – the settings object that contains the list of user and group plugins. |
---|
Try and authenticate the user using the auth type he/she specified to use and if authentication didn’t work using that
Parameters: |
|
---|
Return a list of tuples containing pluginname and group id
Parameters: | request (django.http.HttpRequest) – a HTTP Request instance |
---|
Return a list of the groups an entity belongs to
Parameters: | entity (string) – the entity to earch for, user or group. |
---|
The groups will be reurned as a list similar to:
[{'name': 'Group 456', 'id': '2'},
{'name': 'Group 123', 'id': '1'}]
Return a user model based on the given auth method and user id.
This function is responsible for creating the user within the Django DB and returning the resulting user model.
Return a username given the auth method and email address of a user.
Return a list of users and/or groups
Return a list of users and/or groups
Parameters: |
|
---|
Return a list of users and/or groups