Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg-security/TI12-security/trunk/NDGSecurity/python/ndg_security_server/ndg/security/server/paster_templates/full_deployment/attributeauthority/attributeinterface.py_tmpl@7077
Revision 7077,
663 bytes
checked in by pjkersha, 11 years ago
(diff) |
|
-
Property svn:keywords set to
Id
|
Line | |
---|
1 | """NDG Attribute Authority User Roles class - acts as an interface between |
---|
2 | the data centre's user roles configuration and the Attribute Authority |
---|
3 | |
---|
4 | NERC DataGrid Project |
---|
5 | """ |
---|
6 | from ndg.security.server.attributeauthority import AttributeInterface |
---|
7 | |
---|
8 | |
---|
9 | class 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.