From a418f7ee029605bf86e3b717955e04b9854b6400 Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Sun, 29 Aug 2004 09:04:53 +0000 Subject: Removed obsolete Python doc. --- python/doc/tutorial/sp-login-send-authn-request.py | 29 ---------------------- 1 file changed, 29 deletions(-) delete mode 100644 python/doc/tutorial/sp-login-send-authn-request.py (limited to 'python/doc/tutorial/sp-login-send-authn-request.py') diff --git a/python/doc/tutorial/sp-login-send-authn-request.py b/python/doc/tutorial/sp-login-send-authn-request.py deleted file mode 100644 index 3d5ccefd..00000000 --- a/python/doc/tutorial/sp-login-send-authn-request.py +++ /dev/null @@ -1,29 +0,0 @@ -import lasso - -lasso.init() - -## Send an authentication request to identity provider. -## -## Called when the user press login button on service provider. - -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_authn_request('http://identification.entrouvert.org'): - raise Exception('Login error') - -# Identity provider will ask user to authenticate himself. -login.request.set_isPassive(False) - -# Identity provider will not ask user to authenticate himself if he has already done it recently. -# login.request.set_forceAuthn(False) - -# Identity provider will create a federation with this service provider and this user, if this was -# not already done. -login.request.set_nameIDPolicy(lasso.libNameIDPolicyTypeFederated) - -if login.build_authn_request_msg(): - raise Exception('Login error') -[...] # Reply a HTTP redirect to login.msg_url. - -lasso.shutdown() -- cgit