summaryrefslogtreecommitdiffstats
path: root/python/tests/Provider.py
diff options
context:
space:
mode:
authorEmmanuel Raviart <eraviart@entrouvert.com>2004-08-07 20:42:02 +0000
committerEmmanuel Raviart <eraviart@entrouvert.com>2004-08-07 20:42:02 +0000
commitb46a6f80382d309a4e0c4ebdca346c296b66a789 (patch)
treeae84b88cb68be02c4768bf2340e33e8f719f7da5 /python/tests/Provider.py
parent8d90adf21cc3023d92f8d264a510e9705c32ad81 (diff)
downloadlasso-b46a6f80382d309a4e0c4ebdca346c296b66a789.tar.gz
lasso-b46a6f80382d309a4e0c4ebdca346c296b66a789.tar.xz
lasso-b46a6f80382d309a4e0c4ebdca346c296b66a789.zip
Added LECP support in Python simulator and unit tests. I think I have found
several bugs in Lasso LECP implementation. My biggest problem is that I didn't find a way for IDP to set userAuthenticated, authenticationMethod, reauthenticateOnOrAfter to lecp before (or when) building response envelope with lecp.build_authn_response_envelope_msg(). Did I overlook something?
Diffstat (limited to 'python/tests/Provider.py')
-rw-r--r--python/tests/Provider.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/python/tests/Provider.py b/python/tests/Provider.py
index 809376d4..88406814 100644
--- a/python/tests/Provider.py
+++ b/python/tests/Provider.py
@@ -21,8 +21,6 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-# FIXME: Replace principal with client in most methods.
-# FIXME: Rename webUser to userAccount.
import lasso
@@ -31,5 +29,13 @@ from websimulator import *
class Provider(WebSite):
+ responseHeaders = WebSite.responseHeaders.copy()
+ responseHeaders.update({
+ 'Liberty-Enabled': 'LIBV=urn:liberty:iff:2003-08,http://projectliberty.org/specs/v1',
+ })
+ serverDump = None
+ webUserIdsByNameIdentifier = None
+ webSessionIdsByNameIdentifier = None
+
def getServer(self):
return lasso.Server.new_from_dump(self.serverDump)