summaryrefslogtreecommitdiffstats
path: root/python/doc/tutorial
diff options
context:
space:
mode:
Diffstat (limited to 'python/doc/tutorial')
-rw-r--r--python/doc/tutorial/sp-login-process-authn-response.py4
1 files changed, 2 insertions, 2 deletions
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.