source: TI12-security/trunk/NDGSecurity/python/ndg_security_server/ndg/security/server/paster_templates/default_deployment/attributeauthority/attributeinterface.py_tmpl @ 7077

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDGSecurity/python/ndg_security_server/ndg/security/server/paster_templates/default_deployment/attributeauthority/attributeinterface.py_tmpl@7077
Revision 7077, 663 bytes checked in by pjkersha, 9 years ago (diff)
  • Property svn:keywords set to Id
Line 
1"""NDG Attribute Authority User Roles class - acts as an interface between
2the data centre's user roles configuration and the Attribute Authority
3                                                                               
4NERC DataGrid Project
5"""
6from ndg.security.server.attributeauthority import AttributeInterface
7
8
9class TestAttributeInterface(AttributeInterface):
10    """Test User Roles class dynamic import for Attribute Authority"""
11
12    def __init__(self, propertiesFilePath=None):
13        pass
14
15    def userIsRegistered(self, userId):
16        return True
17
18    def getRoles(self, userId):
19        return ['staff', 'postdoc', 'undergrad', 'coapec']
Note: See TracBrowser for help on using the repository browser.