From 042a39af7be0e0d0eb4f40b9d8665d1d84cb851c Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Tue, 13 Jul 2004 21:46:08 +0000 Subject: The API is globally frozen, but locally melting. --- python/doc/tutorial/sp-login-process-authn-response.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/doc/tutorial') diff --git a/python/doc/tutorial/sp-login-process-authn-response.py b/python/doc/tutorial/sp-login-process-authn-response.py index 126cd6e0..28651823 100644 --- a/python/doc/tutorial/sp-login-process-authn-response.py +++ b/python/doc/tutorial/sp-login-process-authn-response.py @@ -10,12 +10,12 @@ query = [...] # Get current URL query. server_dump = [...] # Load server_dump from file or database or... server = lasso.Server.new_from_dump(server_dump) login = lasso.Login.new(server) -if login.init_request(query, lasso.httpMethods['redirect']: +if login.init_request(query, lasso.httpMethodRedirect): raise Exception('Login error') if login.build_request_msg(): raise Exception('Login error') soap_response = [...] # Send SOAP message login.msg_body to URL login.msg_url. -if login.handle_response(soap_response): +if login.process_response(soap_response): raise Exception('Login error') name_identifier = login.response.name_identifier account = [...] # Retrieve user account having this name_identifier. -- cgit