diff options
| author | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-07-13 21:46:08 +0000 |
|---|---|---|
| committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-07-13 21:46:08 +0000 |
| commit | 042a39af7be0e0d0eb4f40b9d8665d1d84cb851c (patch) | |
| tree | 7d93c73067ea8a9b8199ed699d307a26ea2c1e3a /python/doc/tutorial | |
| parent | a2162f9bd5d0533f9dba1dcc4569b8a409ced085 (diff) | |
| download | lasso-042a39af7be0e0d0eb4f40b9d8665d1d84cb851c.tar.gz lasso-042a39af7be0e0d0eb4f40b9d8665d1d84cb851c.tar.xz lasso-042a39af7be0e0d0eb4f40b9d8665d1d84cb851c.zip | |
The API is globally frozen, but locally melting.
Diffstat (limited to 'python/doc/tutorial')
| -rw-r--r-- | python/doc/tutorial/sp-login-process-authn-response.py | 4 |
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. |
