diff options
| author | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-07-12 17:25:29 +0000 |
|---|---|---|
| committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-07-12 17:25:29 +0000 |
| commit | eabe93ffe505d3e0c51dd3e270ea30d6305ecf29 (patch) | |
| tree | b1905126cccd6697a412788a88d7f4a2d762ad0c /python | |
| parent | 5c5c662ed57e62dfb17757537a369ee6ddfa2f91 (diff) | |
| download | lasso-eabe93ffe505d3e0c51dd3e270ea30d6305ecf29.tar.gz lasso-eabe93ffe505d3e0c51dd3e270ea30d6305ecf29.tar.xz lasso-eabe93ffe505d3e0c51dd3e270ea30d6305ecf29.zip | |
Corrected SP init for C & Python.
Diffstat (limited to 'python')
| -rw-r--r-- | python/doc/tutorial/sp-init.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/python/doc/tutorial/sp-init.py b/python/doc/tutorial/sp-init.py index 13dc6504..9a008d51 100644 --- a/python/doc/tutorial/sp-init.py +++ b/python/doc/tutorial/sp-init.py @@ -7,12 +7,14 @@ import lasso ## Once inited, this service provider context is never changed. # Initialize with service provider informations. -[...] # Read metadata, public_key, private_key & certificate from file or database or... -server = lasso.Server.new(metadata, public_key, private_key, certificate, lasso.signatureMethods["dsaSha1"]) +[...] # Get metadata_file_path, public_key_file_path, private_key_file_path & + # certificate_file_path. +server = lasso.Server.new(metadata_file_path, public_key_file_path, private_key_file_path, + certificate_file_path, lasso.signatureMethodDsaSha1) # Add identity provider informations. -[...] # Read idp_metadata, idp_public_key & idp_certificate from file or database or... -server.add_provider(idp_metadata, idp_public_key, idp_certificate) +[...] # Get idp_metadata_file_path, idp_public_key_file_path & idp_ca_certificate_file_path. +server.add_provider(idp_metadata_file_path, idp_public_key_file_path, idp_ca_certificate_file_path) # Dump server context to a string and store it in a file. server_dump = server.dump() |
