From 890c5150e4e0ed3956d95d506ec391645a265090 Mon Sep 17 00:00:00 2001 From: Nicolas Clapies Date: Sun, 25 Jul 2004 09:29:28 +0000 Subject: fix the problem of setting the user environ in SOAP method : the problem : process_request_msg needs usr environ to verify federation and authentication. a solution : first load the request msg get the name identifier of the request find the user dump from the name identifier and load it in logout object process the request see python/examples/logout.py for the methods. --- python/examples/logout.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'python/examples') diff --git a/python/examples/logout.py b/python/examples/logout.py index c4f13254..60cafe4c 100644 --- a/python/examples/logout.py +++ b/python/examples/logout.py @@ -37,7 +37,7 @@ idpuser_dump = "" -idplogout.process_request_msg(msg_body, lasso.httpMethodSoap) +idplogout.load_request_msg(msg_body, lasso.httpMethodSoap) +nameIdentifier = idplogout.nameIdentifier +print "get the user dump from NameIdentifier : ", nameIdentifier +idplogout.load_user_dump(idpuser_dump) +idplogout.process_request() + next_provider_id = idplogout.get_next_providerID() while next_provider_id: idplogout.init_request(next_provider_id) @@ -69,5 +73,6 @@ while next_provider_id: next_provider_id = idplogout.get_next_providerID() +idplogout.build_response_msg() print "End of logout" -- cgit