source: TI12-security/trunk/documentation/epydoc/ndg.security.server.conf.userRoles-pysrc.html @ 4245

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/documentation/epydoc/ndg.security.server.conf.userRoles-pysrc.html@4245
Revision 4245, 34.4 KB checked in by pjkersha, 11 years ago (diff)

Working unit tests for WSGI based Attribute Authority.

  • Altered so that all Attribute Config is picked up from the Paste ini file. Separate cfg or xml based config file is still supported.

TODO:

  • Simplify unit test config for client.
Line 
1<?xml version="1.0" encoding="ascii"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3          "DTD/xhtml1-transitional.dtd">
4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5<head>
6  <title>ndg.security.server.conf.userRoles</title>
7  <link rel="stylesheet" href="epydoc.css" type="text/css" />
8  <script type="text/javascript" src="epydoc.js"></script>
9</head>
10
11<body bgcolor="white" text="black" link="blue" vlink="#204080"
12      alink="#204080">
13<!-- ==================== NAVIGATION BAR ==================== -->
14<table class="navbar" border="0" width="100%" cellpadding="0"
15       bgcolor="#a0c0ff" cellspacing="0">
16  <tr valign="middle">
17  <!-- Home link -->
18      <th>&nbsp;&nbsp;&nbsp;<a
19        href="ndg-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
20
21  <!-- Tree link -->
22      <th>&nbsp;&nbsp;&nbsp;<a
23        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
24
25  <!-- Index link -->
26      <th>&nbsp;&nbsp;&nbsp;<a
27        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
28
29  <!-- Help link -->
30      <th>&nbsp;&nbsp;&nbsp;<a
31        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
32
33  <!-- Project homepage -->
34      <th class="navbar" align="right" width="100%">
35        <table border="0" cellpadding="0" cellspacing="0">
36          <tr><th class="navbar" align="center"
37            >NDG Security</th>
38          </tr></table></th>
39  </tr>
40</table>
41<table width="100%" cellpadding="0" cellspacing="0">
42  <tr valign="top">
43    <td width="100%">
44      <span class="breadcrumbs">
45        <a href="ndg-module.html">Package&nbsp;ndg</a> ::
46        <a href="ndg.security-module.html">Package&nbsp;security</a> ::
47        <a href="ndg.security.server-module.html">Package&nbsp;server</a> ::
48        <a href="ndg.security.server.conf-module.html">Package&nbsp;conf</a> ::
49        Module&nbsp;userRoles
50      </span>
51    </td>
52    <td>
53      <table cellpadding="0" cellspacing="0">
54        <!-- hide/show private -->
55        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
56    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
57      </table>
58    </td>
59  </tr>
60</table>
61<h1 class="epydoc">Source Code for <a href="ndg.security.server.conf.userRoles-module.html">Module ndg.security.server.conf.userRoles</a></h1>
62<pre class="py-src">
63<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-docstring">"""NDG Attribute Authority User Roles class - acts as an interface between</tt> </tt>
64<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"><tt class="py-docstring">the data centre's user roles configuration and the Attribute Authority</tt> </tt>
65<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-docstring">                                                                                </tt> </tt>
66<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"><tt class="py-docstring">NERC Data Grid Project</tt> </tt>
67<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
68<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"><tt class="py-name">__author__</tt> <tt class="py-op">=</tt> <tt class="py-string">"P J Kershaw"</tt> </tt>
69<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"><tt class="py-name">__date__</tt> <tt class="py-op">=</tt> <tt class="py-string">"29/07/05"</tt> </tt>
70<a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-name">__copyright__</tt> <tt class="py-op">=</tt> <tt class="py-string">"(C) 2007 STFC &amp; NERC"</tt> </tt>
71<a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line"><tt class="py-name">__license__</tt> <tt class="py-op">=</tt> \ </tt>
72<a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line"><tt class="py-string">"""This software may be distributed under the terms of the Q Public </tt> </tt>
73<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line"><tt class="py-string">License, version 1.0 or later."""</tt> </tt>
74<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line"><tt class="py-name">__contact__</tt> <tt class="py-op">=</tt> <tt class="py-string">"P.J.Kershaw@rl.ac.uk"</tt> </tt>
75<a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line"><tt id="link-0" class="py-name" targets="Variable ndg.__revision__=ndg-module.html#__revision__,Variable ndg.security.__revision__=ndg.security-module.html#__revision__,Variable ndg.security.__revision__=ndg.security-module.html#__revision__,Variable ndg.security.client.LogClient.__revision__=ndg.security.client.LogClient-module.html#__revision__,Variable ndg.security.client.SimpleCAClient.__revision__=ndg.security.client.SimpleCAClient-module.html#__revision__,Variable ndg.security.client.__revision__=ndg.security.client-module.html#__revision__,Variable ndg.security.client.ndgSessionClient.__revision__=ndg.security.client.ndgSessionClient-module.html#__revision__,Variable ndg.security.common.AttAuthority.__revision__=ndg.security.common.AttAuthority-module.html#__revision__,Variable ndg.security.common.AttCert.__revision__=ndg.security.common.AttCert-module.html#__revision__,Variable ndg.security.common.CredWallet.__revision__=ndg.security.common.CredWallet-module.html#__revision__,Variable ndg.security.common.SQLObject.__revision__=ndg.security.common.SQLObject-module.html#__revision__,Variable ndg.security.common.SecurityCGI.__revision__=ndg.security.common.SecurityCGI-module.html#__revision__,Variable ndg.security.common.SessionMgr.__revision__=ndg.security.common.SessionMgr-module.html#__revision__,Variable ndg.security.common.X509.__revision__=ndg.security.common.X509-module.html#__revision__,Variable ndg.security.common.XMLSec.__revision__=ndg.security.common.XMLSec-module.html#__revision__,Variable ndg.security.common.__revision__=ndg.security.common-module.html#__revision__,Variable ndg.security.common.authz.__revision__=ndg.security.common.authz-module.html#__revision__,Variable ndg.security.common.authz.pdp.__revision__=ndg.security.common.authz.pdp-module.html#__revision__,Variable ndg.security.common.authz.pdp.browse.__revision__=ndg.security.common.authz.pdp.browse-module.html#__revision__,Variable ndg.security.common.authz.pdp.proftp.__revision__=ndg.security.common.authz.pdp.proftp-module.html#__revision__,Variable ndg.security.common.authz.pep.__revision__=ndg.security.common.authz.pep-module.html#__revision__,Variable ndg.security.common.ca.__revision__=ndg.security.common.ca-module.html#__revision__,Variable ndg.security.common.gatekeeper.__revision__=ndg.security.common.gatekeeper-module.html#__revision__,Variable ndg.security.common.logService.__revision__=ndg.security.common.logService-module.html#__revision__,Variable ndg.security.common.logService.log_services_server.__revision__=ndg.security.common.logService.log_services_server-module.html#__revision__,Variable ndg.security.common.m2CryptoSSLUtility.__revision__=ndg.security.common.m2CryptoSSLUtility-module.html#__revision__,Variable ndg.security.common.openssl.__revision__=ndg.security.common.openssl-module.html#__revision__,Variable ndg.security.common.pylons.security_util.__revision__=ndg.security.common.pylons.security_util-module.html#__revision__,Variable ndg.security.common.saml.__revision__=ndg.security.common.saml-module.html#__revision__,Variable ndg.security.common.sessionCookie.__revision__=ndg.security.common.sessionCookie-module.html#__revision__,Variable ndg.security.common.utils.ClassFactory.__revision__=ndg.security.common.utils.ClassFactory-module.html#__revision__,Variable ndg.security.common.utils.ConfigFileParsers.__revision__=ndg.security.common.utils.ConfigFileParsers-module.html#__revision__,Variable ndg.security.common.wssecurity.BaseSignatureHandler.__revision__=ndg.security.common.wssecurity.BaseSignatureHandler-module.html#__revision__,Variable ndg.security.common.wssecurity.__revision__=ndg.security.common.wssecurity-module.html#__revision__,Variable ndg.security.common.wssecurity.dom.__revision__=ndg.security.common.wssecurity.dom-module.html#__revision__,Variable ndg.security.common.wssecurity.etree.__revision__=ndg.security.common.wssecurity.etree-module.html#__revision__,Variable ndg.security.common.xmlsec.__revision__=ndg.security.common.xmlsec-module.html#__revision__,Variable ndg.security.common.xmlsec.dom.__revision__=ndg.security.common.xmlsec.dom-module.html#__revision__,Variable ndg.security.common.xmlsec.etree.__revision__=ndg.security.common.xmlsec.etree-module.html#__revision__,Variable ndg.security.common.zsi_utils.httpproxy.__revision__=ndg.security.common.zsi_utils.httpproxy-module.html#__revision__,Variable ndg.security.server.AttAuthority.__revision__=ndg.security.server.AttAuthority-module.html#__revision__,Variable ndg.security.server.Log.__revision__=ndg.security.server.Log-module.html#__revision__,Variable ndg.security.server.SessionMgr.__revision__=ndg.security.server.SessionMgr-module.html#__revision__,Variable ndg.security.server.__revision__=ndg.security.server-module.html#__revision__,Variable ndg.security.server.authenservice.MyProxy.__revision__=ndg.security.server.authenservice.MyProxy-module.html#__revision__,Variable ndg.security.server.authenservice.__revision__=ndg.security.server.authenservice-module.html#__revision__,Variable ndg.security.server.authenservice.session_mgr_my_proxy_client.__revision__=ndg.security.server.authenservice.session_mgr_my_proxy_client-module.html#__revision__,Variable ndg.security.server.ca.__revision__=ndg.security.server.ca-module.html#__revision__,Variable ndg.security.server.conf.__revision__=ndg.security.server.conf-module.html#__revision__,Variable ndg.security.server.conf.attCertLog.__revision__=ndg.security.server.conf.attCertLog-module.html#__revision__,Variable ndg.security.server.conf.certs.__revision__=ndg.security.server.conf.certs-module.html#__revision__,Variable ndg.security.server.conf.certs.ca.__revision__=ndg.security.server.conf.certs.ca-module.html#__revision__,Variable ndg.security.server.conf.userRoles.__revision__=ndg.security.server.conf.userRoles-module.html#__revision__,Variable ndg.security.server.initCredReposDb.__revision__=ndg.security.server.initCredReposDb-module.html#__revision__,Variable ndg.security.server.log.__revision__=ndg.security.server.log-module.html#__revision__,Variable ndg.security.server.pylons.container.lib.openid_provider_util.__revision__=ndg.security.server.pylons.container.lib.openid_provider_util-module.html#__revision__,Variable ndg.security.server.share.__revision__=ndg.security.server.share-module.html#__revision__,Variable ndg.security.server.twisted.__revision__=ndg.security.server.twisted-module.html#__revision__,Variable ndg.security.server.wsgi.openid_provider.__revision__=ndg.security.server.wsgi.openid_provider-module.html#__revision__,Variable ndg.security.server.wsgi.soap.__revision__=ndg.security.server.wsgi.soap-module.html#__revision__,Variable ndg.security.server.wsgi.wssecurity.__revision__=ndg.security.server.wsgi.wssecurity-module.html#__revision__,Variable ndg.security.test.Log.LogTest.__revision__=ndg.security.test.Log.LogTest-module.html#__revision__,Variable ndg.security.test.Log.__revision__=ndg.security.test.Log-module.html#__revision__,Variable ndg.security.test.X509.X509Test.__revision__=ndg.security.test.X509.X509Test-module.html#__revision__,Variable ndg.security.test.X509.__revision__=ndg.security.test.X509-module.html#__revision__,Variable ndg.security.test.XMLSecDoc.__revision__=ndg.security.test.XMLSecDoc-module.html#__revision__,Variable ndg.security.test.XMLSecDoc.xmlSecDocTest.__revision__=ndg.security.test.XMLSecDoc.xmlSecDocTest-module.html#__revision__,Variable ndg.security.test.__revision__=ndg.security.test-module.html#__revision__,Variable ndg.security.test.attAuthority.AttAuthorityClientTest.__revision__=ndg.security.test.attAuthority.AttAuthorityClientTest-module.html#__revision__,Variable ndg.security.test.attAuthority.__revision__=ndg.security.test.attAuthority-module.html#__revision__,Variable ndg.security.test.attAuthority.attCertLog.__revision__=ndg.security.test.attAuthority.attCertLog-module.html#__revision__,Variable ndg.security.test.attAuthority.ca.__revision__=ndg.security.test.attAuthority.ca-module.html#__revision__,Variable ndg.security.test.attAuthority.siteAServer.__revision__=ndg.security.test.attAuthority.siteAServer-module.html#__revision__,Variable ndg.security.test.attAuthority.siteAUserRoles.__revision__=ndg.security.test.attAuthority.siteAUserRoles-module.html#__revision__,Variable ndg.security.test.attAuthority.siteBServer.__revision__=ndg.security.test.attAuthority.siteBServer-module.html#__revision__,Variable ndg.security.test.attAuthority.siteBUserRoles.__revision__=ndg.security.test.attAuthority.siteBUserRoles-module.html#__revision__,Variable ndg.security.test.attCert.AttCertTest.__revision__=ndg.security.test.attCert.AttCertTest-module.html#__revision__,Variable ndg.security.test.attCert.__revision__=ndg.security.test.attCert-module.html#__revision__,Variable ndg.security.test.authenservice.__revision__=ndg.security.test.authenservice-module.html#__revision__,Variable ndg.security.test.authenservice.test_authen_service.__revision__=ndg.security.test.authenservice.test_authen_service-module.html#__revision__,Variable ndg.security.test.authz.pdp.testProftPDP.__revision__=ndg.security.test.authz.pdp.testProftPDP-module.html#__revision__,Variable ndg.security.test.ca.__revision__=ndg.security.test.ca-module.html#__revision__,Variable ndg.security.test.ca.caClientTest.__revision__=ndg.security.test.ca.caClientTest-module.html#__revision__,Variable ndg.security.test.myProxy.MyProxyClientTest.__revision__=ndg.security.test.myProxy.MyProxyClientTest-module.html#__revision__,Variable ndg.security.test.myProxy.__revision__=ndg.security.test.myProxy-module.html#__revision__,Variable ndg.security.test.saml.__revision__=ndg.security.test.saml-module.html#__revision__,Variable ndg.security.test.sessionCookie.SessionCookieTest.__revision__=ndg.security.test.sessionCookie.SessionCookieTest-module.html#__revision__,Variable ndg.security.test.sessionCookie.__revision__=ndg.security.test.sessionCookie-module.html#__revision__,Variable ndg.security.test.sessionMgr.__revision__=ndg.security.test.sessionMgr-module.html#__revision__,Variable ndg.security.test.sessionMgr.ca.__revision__=ndg.security.test.sessionMgr.ca-module.html#__revision__,Variable ndg.security.test.sessionMgr.test.__revision__=ndg.security.test.sessionMgr.test-module.html#__revision__,Variable ndg.security.test.sessionMgrClient.SessionMgrClientTest.__revision__=ndg.security.test.sessionMgrClient.SessionMgrClientTest-module.html#__revision__,Variable ndg.security.test.sessionMgrClient.__revision__=ndg.security.test.sessionMgrClient-module.html#__revision__,Variable ndg.security.test.sessionMgrClient.ca.__revision__=ndg.security.test.sessionMgrClient.ca-module.html#__revision__,Variable ndg.security.test.sessionMgrClient.server.__revision__=ndg.security.test.sessionMgrClient.server-module.html#__revision__,Variable ndg.security.test.wsSecurity.__revision__=ndg.security.test.wsSecurity-module.html#__revision__,Variable ndg.security.test.wsSecurity.client.__revision__=ndg.security.test.wsSecurity.client-module.html#__revision__,Variable ndg.security.test.wsSecurity.server.__revision__=ndg.security.test.wsSecurity.server-module.html#__revision__,Variable ndg.security.test.xmlsec.__revision__=ndg.security.test.xmlsec-module.html#__revision__,Variable ndg.security.test.xmlsec.dom.__revision__=ndg.security.test.xmlsec.dom-module.html#__revision__,Variable ndg.security.test.xmlsec.etree.test_etree.__revision__=ndg.security.test.xmlsec.etree.test_etree-module.html#__revision__"><a title="ndg.__revision__
76ndg.security.__revision__
77ndg.security.__revision__
78ndg.security.client.LogClient.__revision__
79ndg.security.client.SimpleCAClient.__revision__
80ndg.security.client.__revision__
81ndg.security.client.ndgSessionClient.__revision__
82ndg.security.common.AttAuthority.__revision__
83ndg.security.common.AttCert.__revision__
84ndg.security.common.CredWallet.__revision__
85ndg.security.common.SQLObject.__revision__
86ndg.security.common.SecurityCGI.__revision__
87ndg.security.common.SessionMgr.__revision__
88ndg.security.common.X509.__revision__
89ndg.security.common.XMLSec.__revision__
90ndg.security.common.__revision__
91ndg.security.common.authz.__revision__
92ndg.security.common.authz.pdp.__revision__
93ndg.security.common.authz.pdp.browse.__revision__
94ndg.security.common.authz.pdp.proftp.__revision__
95ndg.security.common.authz.pep.__revision__
96ndg.security.common.ca.__revision__
97ndg.security.common.gatekeeper.__revision__
98ndg.security.common.logService.__revision__
99ndg.security.common.logService.log_services_server.__revision__
100ndg.security.common.m2CryptoSSLUtility.__revision__
101ndg.security.common.openssl.__revision__
102ndg.security.common.pylons.security_util.__revision__
103ndg.security.common.saml.__revision__
104ndg.security.common.sessionCookie.__revision__
105ndg.security.common.utils.ClassFactory.__revision__
106ndg.security.common.utils.ConfigFileParsers.__revision__
107ndg.security.common.wssecurity.BaseSignatureHandler.__revision__
108ndg.security.common.wssecurity.__revision__
109ndg.security.common.wssecurity.dom.__revision__
110ndg.security.common.wssecurity.etree.__revision__
111ndg.security.common.xmlsec.__revision__
112ndg.security.common.xmlsec.dom.__revision__
113ndg.security.common.xmlsec.etree.__revision__
114ndg.security.common.zsi_utils.httpproxy.__revision__
115ndg.security.server.AttAuthority.__revision__
116ndg.security.server.Log.__revision__
117ndg.security.server.SessionMgr.__revision__
118ndg.security.server.__revision__
119ndg.security.server.authenservice.MyProxy.__revision__
120ndg.security.server.authenservice.__revision__
121ndg.security.server.authenservice.session_mgr_my_proxy_client.__revision__
122ndg.security.server.ca.__revision__
123ndg.security.server.conf.__revision__
124ndg.security.server.conf.attCertLog.__revision__
125ndg.security.server.conf.certs.__revision__
126ndg.security.server.conf.certs.ca.__revision__
127ndg.security.server.conf.userRoles.__revision__
128ndg.security.server.initCredReposDb.__revision__
129ndg.security.server.log.__revision__
130ndg.security.server.pylons.container.lib.openid_provider_util.__revision__
131ndg.security.server.share.__revision__
132ndg.security.server.twisted.__revision__
133ndg.security.server.wsgi.openid_provider.__revision__
134ndg.security.server.wsgi.soap.__revision__
135ndg.security.server.wsgi.wssecurity.__revision__
136ndg.security.test.Log.LogTest.__revision__
137ndg.security.test.Log.__revision__
138ndg.security.test.X509.X509Test.__revision__
139ndg.security.test.X509.__revision__
140ndg.security.test.XMLSecDoc.__revision__
141ndg.security.test.XMLSecDoc.xmlSecDocTest.__revision__
142ndg.security.test.__revision__
143ndg.security.test.attAuthority.AttAuthorityClientTest.__revision__
144ndg.security.test.attAuthority.__revision__
145ndg.security.test.attAuthority.attCertLog.__revision__
146ndg.security.test.attAuthority.ca.__revision__
147ndg.security.test.attAuthority.siteAServer.__revision__
148ndg.security.test.attAuthority.siteAUserRoles.__revision__
149ndg.security.test.attAuthority.siteBServer.__revision__
150ndg.security.test.attAuthority.siteBUserRoles.__revision__
151ndg.security.test.attCert.AttCertTest.__revision__
152ndg.security.test.attCert.__revision__
153ndg.security.test.authenservice.__revision__
154ndg.security.test.authenservice.test_authen_service.__revision__
155ndg.security.test.authz.pdp.testProftPDP.__revision__
156ndg.security.test.ca.__revision__
157ndg.security.test.ca.caClientTest.__revision__
158ndg.security.test.myProxy.MyProxyClientTest.__revision__
159ndg.security.test.myProxy.__revision__
160ndg.security.test.saml.__revision__
161ndg.security.test.sessionCookie.SessionCookieTest.__revision__
162ndg.security.test.sessionCookie.__revision__
163ndg.security.test.sessionMgr.__revision__
164ndg.security.test.sessionMgr.ca.__revision__
165ndg.security.test.sessionMgr.test.__revision__
166ndg.security.test.sessionMgrClient.SessionMgrClientTest.__revision__
167ndg.security.test.sessionMgrClient.__revision__
168ndg.security.test.sessionMgrClient.ca.__revision__
169ndg.security.test.sessionMgrClient.server.__revision__
170ndg.security.test.wsSecurity.__revision__
171ndg.security.test.wsSecurity.client.__revision__
172ndg.security.test.wsSecurity.server.__revision__
173ndg.security.test.xmlsec.__revision__
174ndg.security.test.xmlsec.dom.__revision__
175ndg.security.test.xmlsec.etree.test_etree.__revision__" class="py-name" href="#" onclick="return doclink('link-0', '__revision__', 'link-0');">__revision__</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'$Id: userRoles.py 2927 2007-10-05 09:43:44Z pjkersha $'</tt> </tt>
176<a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line"> </tt>
177<a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line"> </tt>
178<a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-1" class="py-name" targets="Package ndg=ndg-module.html,Class ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg=ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg-class.html,Package ndg.security.client.ssoclient.ssoclient.templates.ndg=ndg.security.client.ssoclient.ssoclient.templates.ndg-module.html,Package ndg.security.server.pylons.container.templates.bak.ndg=ndg.security.server.pylons.container.templates.bak.ndg-module.html,Package ndg.security.server.pylons.container.templates.ndg=ndg.security.server.pylons.container.templates.ndg-module.html,Class ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg=ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg-class.html,Package ndg.security.server.sso.sso.templates.ndg=ndg.security.server.sso.sso.templates.ndg-module.html"><a title="ndg
179ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg
180ndg.security.client.ssoclient.ssoclient.templates.ndg
181ndg.security.server.pylons.container.templates.bak.ndg
182ndg.security.server.pylons.container.templates.ndg
183ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg
184ndg.security.server.sso.sso.templates.ndg" class="py-name" href="#" onclick="return doclink('link-1', 'ndg', 'link-1');">ndg</a></tt><tt class="py-op">.</tt><tt id="link-2" class="py-name" targets="Package ndg.security=ndg.security-module.html,Package ndg.security=ndg.security-module.html,Class ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg.security=ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg.security-class.html,Package ndg.security.client.ssoclient.ssoclient.templates.ndg.security=ndg.security.client.ssoclient.ssoclient.templates.ndg.security-module.html,Package ndg.security.server.pylons.container.templates.bak.ndg.security=ndg.security.server.pylons.container.templates.bak.ndg.security-module.html,Package ndg.security.server.pylons.container.templates.ndg.security=ndg.security.server.pylons.container.templates.ndg.security-module.html,Class ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg.security=ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg.security-class.html,Package ndg.security.server.sso.sso.templates.ndg.security=ndg.security.server.sso.sso.templates.ndg.security-module.html"><a title="ndg.security
185ndg.security
186ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg.security
187ndg.security.client.ssoclient.ssoclient.templates.ndg.security
188ndg.security.server.pylons.container.templates.bak.ndg.security
189ndg.security.server.pylons.container.templates.ndg.security
190ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg.security
191ndg.security.server.sso.sso.templates.ndg.security" class="py-name" href="#" onclick="return doclink('link-2', 'security', 'link-2');">security</a></tt><tt class="py-op">.</tt><tt id="link-3" class="py-name" targets="Package ndg.security.server=ndg.security.server-module.html,Class ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg.security.server=ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg.security.server-class.html,Module ndg.security.test.sessionMgrClient.server=ndg.security.test.sessionMgrClient.server-module.html,Package ndg.security.test.wsSecurity.server=ndg.security.test.wsSecurity.server-module.html"><a title="ndg.security.server
192ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg.security.server
193ndg.security.test.sessionMgrClient.server
194ndg.security.test.wsSecurity.server" class="py-name" href="#" onclick="return doclink('link-3', 'server', 'link-3');">server</a></tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Package ndg.security.common.AttAuthority=ndg.security.common.AttAuthority-module.html,Package ndg.security.server.AttAuthority=ndg.security.server.AttAuthority-module.html,Class ndg.security.server.AttAuthority.AttAuthority=ndg.security.server.AttAuthority.AttAuthority-class.html"><a title="ndg.security.common.AttAuthority
195ndg.security.server.AttAuthority
196ndg.security.server.AttAuthority.AttAuthority" class="py-name" href="#" onclick="return doclink('link-4', 'AttAuthority', 'link-4');">AttAuthority</a></tt> <tt class="py-keyword">import</tt> <tt id="link-5" class="py-name" targets="Class ndg.security.server.AttAuthority.AAUserRoles=ndg.security.server.AttAuthority.AAUserRoles-class.html"><a title="ndg.security.server.AttAuthority.AAUserRoles" class="py-name" href="#" onclick="return doclink('link-5', 'AAUserRoles', 'link-5');">AAUserRoles</a></tt> </tt>
197<a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line"> </tt>
198<a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line"> </tt>
199<a name="UserRoles"></a><div id="UserRoles-def"><a name="L19"></a><tt class="py-lineno">19</tt> <a class="py-toggle" href="#" id="UserRoles-toggle" onclick="return toggle('UserRoles');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="ndg.security.server.conf.userRoles.UserRoles-class.html">UserRoles</a><tt class="py-op">(</tt><tt class="py-base-class">AAUserRoles</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
200</div><div id="UserRoles-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="UserRoles-expanded"><a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line">    <tt class="py-docstring">"""User Roles class dynamic import for Attribute Authority.  Customize</tt> </tt>
201<a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line"><tt class="py-docstring">    according to your site's user role allocation system"""</tt> </tt>
202<a name="L22"></a><tt class="py-lineno">22</tt>  <tt class="py-line"> </tt>
203<a name="UserRoles.__init__"></a><div id="UserRoles.__init__-def"><a name="L23"></a><tt class="py-lineno">23</tt> <a class="py-toggle" href="#" id="UserRoles.__init__-toggle" onclick="return toggle('UserRoles.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.server.conf.userRoles.UserRoles-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">propertiesFilePath</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
204</div><div id="UserRoles.__init__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="UserRoles.__init__-expanded"><a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line">        <tt class="py-docstring">"""Customize for example to initialise site user repository settings</tt> </tt>
205<a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
206<a name="L26"></a><tt class="py-lineno">26</tt>  <tt class="py-line"><tt class="py-docstring">        @type propertiesFilePath: string</tt> </tt>
207<a name="L27"></a><tt class="py-lineno">27</tt>  <tt class="py-line"><tt class="py-docstring">        @param propertiesFilePath: file path to a properties from which</tt> </tt>
208<a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line"><tt class="py-docstring">        to initialise the user roles interface. e.g. the file could contain</tt> </tt>
209<a name="L29"></a><tt class="py-lineno">29</tt>  <tt class="py-line"><tt class="py-docstring">        user database settings.  The file path passed corresponds to the </tt> </tt>
210<a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line"><tt class="py-docstring">        userRolesPropFile element in the attAuthorityProperties.xml file.</tt> </tt>
211<a name="L31"></a><tt class="py-lineno">31</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
212<a name="L32"></a><tt class="py-lineno">32</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
213</div><a name="L33"></a><tt class="py-lineno">33</tt>  <tt class="py-line"> </tt>
214<a name="L34"></a><tt class="py-lineno">34</tt>  <tt class="py-line"> </tt>
215<a name="UserRoles.userIsRegistered"></a><div id="UserRoles.userIsRegistered-def"><a name="L35"></a><tt class="py-lineno">35</tt> <a class="py-toggle" href="#" id="UserRoles.userIsRegistered-toggle" onclick="return toggle('UserRoles.userIsRegistered');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.server.conf.userRoles.UserRoles-class.html#userIsRegistered">userIsRegistered</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">userId</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
216</div><div id="UserRoles.userIsRegistered-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="UserRoles.userIsRegistered-expanded"><a name="L36"></a><tt class="py-lineno">36</tt>  <tt class="py-line">        <tt class="py-docstring">"""Convenience method NOT used by Attribute Authority API</tt> </tt>
217<a name="L37"></a><tt class="py-lineno">37</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
218<a name="L38"></a><tt class="py-lineno">38</tt>  <tt class="py-line"><tt class="py-docstring">        @type userId: string</tt> </tt>
219<a name="L39"></a><tt class="py-lineno">39</tt>  <tt class="py-line"><tt class="py-docstring">        @param userId: identity of user to allocate roles to</tt> </tt>
220<a name="L40"></a><tt class="py-lineno">40</tt>  <tt class="py-line"><tt class="py-docstring">        @rtype: bool</tt> </tt>
221<a name="L41"></a><tt class="py-lineno">41</tt>  <tt class="py-line"><tt class="py-docstring">        @return: True if user is registered"""</tt> </tt>
222<a name="L42"></a><tt class="py-lineno">42</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">False</tt> </tt>
223</div><a name="L43"></a><tt class="py-lineno">43</tt>  <tt class="py-line">     </tt>
224<a name="L44"></a><tt class="py-lineno">44</tt>  <tt class="py-line"> </tt>
225<a name="UserRoles.getRoles"></a><div id="UserRoles.getRoles-def"><a name="L45"></a><tt class="py-lineno">45</tt> <a class="py-toggle" href="#" id="UserRoles.getRoles-toggle" onclick="return toggle('UserRoles.getRoles');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.server.conf.userRoles.UserRoles-class.html#getRoles">getRoles</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">userId</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
226</div><div id="UserRoles.getRoles-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="UserRoles.getRoles-expanded"><a name="L46"></a><tt class="py-lineno">46</tt>  <tt class="py-line">        <tt class="py-docstring">"""Allocate required roles to user given by userId.  Default to safe</tt> </tt>
227<a name="L47"></a><tt class="py-lineno">47</tt>  <tt class="py-line"><tt class="py-docstring">        option of returning no user roles i.e. an empty list: []</tt> </tt>
228<a name="L48"></a><tt class="py-lineno">48</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
229<a name="L49"></a><tt class="py-lineno">49</tt>  <tt class="py-line"><tt class="py-docstring">        @type userId: string</tt> </tt>
230<a name="L50"></a><tt class="py-lineno">50</tt>  <tt class="py-line"><tt class="py-docstring">        @param userId: identity of user to allocate roles to</tt> </tt>
231<a name="L51"></a><tt class="py-lineno">51</tt>  <tt class="py-line"><tt class="py-docstring">        @rtype: list</tt> </tt>
232<a name="L52"></a><tt class="py-lineno">52</tt>  <tt class="py-line"><tt class="py-docstring">        @return: roles to which user is entitled"""</tt> </tt>
233<a name="L53"></a><tt class="py-lineno">53</tt>  <tt class="py-line">         </tt>
234<a name="L54"></a><tt class="py-lineno">54</tt>  <tt class="py-line">        <tt class="py-comment"># Put in HERE some conditional statement to allocate roles based on </tt> </tt>
235<a name="L55"></a><tt class="py-lineno">55</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># the userId input. e.g. database query</tt> </tt>
236<a name="L56"></a><tt class="py-lineno">56</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">return</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
237</div></div><a name="L57"></a><tt class="py-lineno">57</tt>  <tt class="py-line"> </tt><script type="text/javascript">
238<!--
239expandto(location.href);
240// -->
241</script>
242</pre>
243<br />
244<!-- ==================== NAVIGATION BAR ==================== -->
245<table class="navbar" border="0" width="100%" cellpadding="0"
246       bgcolor="#a0c0ff" cellspacing="0">
247  <tr valign="middle">
248  <!-- Home link -->
249      <th>&nbsp;&nbsp;&nbsp;<a
250        href="ndg-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
251
252  <!-- Tree link -->
253      <th>&nbsp;&nbsp;&nbsp;<a
254        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
255
256  <!-- Index link -->
257      <th>&nbsp;&nbsp;&nbsp;<a
258        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
259
260  <!-- Help link -->
261      <th>&nbsp;&nbsp;&nbsp;<a
262        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
263
264  <!-- Project homepage -->
265      <th class="navbar" align="right" width="100%">
266        <table border="0" cellpadding="0" cellspacing="0">
267          <tr><th class="navbar" align="center"
268            >NDG Security</th>
269          </tr></table></th>
270  </tr>
271</table>
272<table border="0" cellpadding="0" cellspacing="0" width="100%%">
273  <tr>
274    <td align="left" class="footer">
275    <a href="epydoc-log.html">Generated by Epydoc
276    3.0.1 on Thu Sep  4 09:37:57 2008</a>
277    </td>
278    <td align="right" class="footer">
279      <a target="mainFrame" href="http://epydoc.sourceforge.net"
280        >http://epydoc.sourceforge.net</a>
281    </td>
282  </tr>
283</table>
284
285<script type="text/javascript">
286  <!--
287  // Private objects are initially displayed (because if
288  // javascript is turned off then we want them to be
289  // visible); but by default, we want to hide them.  So hide
290  // them unless we have a cookie that says to show them.
291  checkCookie();
292  // -->
293</script>
294</body>
295</html>
Note: See TracBrowser for help on using the repository browser.