summaryrefslogtreecommitdiffstats
path: root/python/examples/test.py
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-04-21 22:13:47 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-04-21 22:13:47 +0000
commit080c83af7e508d6565299f5b2b572a97d80d137c (patch)
treee8faf57c8d85c1b1da37fa704cb5dd9025c2b7a7 /python/examples/test.py
parent11d9dc4e60e7d1ebf5468c95c4446ca7fff9eb5f (diff)
downloadlasso-080c83af7e508d6565299f5b2b572a97d80d137c.tar.gz
lasso-080c83af7e508d6565299f5b2b572a97d80d137c.tar.xz
lasso-080c83af7e508d6565299f5b2b572a97d80d137c.zip
*** empty log message ***
Diffstat (limited to 'python/examples/test.py')
-rwxr-xr-xpython/examples/test.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/examples/test.py b/python/examples/test.py
index 5fcd622e..11e2b8d4 100755
--- a/python/examples/test.py
+++ b/python/examples/test.py
@@ -6,6 +6,7 @@ import lasso
lasso.init()
+# creation d'une AuthnRequest
req = lasso.AuthnRequest("providerid.com",
"federated",
0,
@@ -26,6 +27,7 @@ query = req.node.url_encode(1, "../../examples/rsakey.pem")
print query
+# creation d'une AuthnResponse
res = lasso.AuthnResponse(query, 1,
"../../examples/rsapub.pem",
"../../examples/rsakey.pem",
@@ -48,9 +50,11 @@ lasso.assertion_add_authenticationStatement(assertion, authentication_statement)
res.add_assertion(assertion)
res.node.dump("iso-8859-1", 1)
-assertion.verify_signature("../../examples/rootcert.pem")
+# Verification de l'assertion de l'AuthnResponse
+#assertion.verify_signature("../../examples/rootcert.pem")
res.node.get_child("Assertion").verify_signature("../../examples/rootcert.pem")
+# recuperation du StatusCode
status = res.node.get_child("Status")
status_code = status.get_child("StatusCode")
print status_code.get_attr_value("Value")