summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorEmmanuel Raviart <eraviart@entrouvert.com>2004-08-20 09:37:47 +0000
committerEmmanuel Raviart <eraviart@entrouvert.com>2004-08-20 09:37:47 +0000
commitf19046331727986f449305edf039712ef8b16c9b (patch)
tree839717a51724df839654b10f5aa4185567a4574c /python
parentffa64315e95b822a0d9a365c5ab062db40d3140e (diff)
downloadlasso-f19046331727986f449305edf039712ef8b16c9b.tar.gz
lasso-f19046331727986f449305edf039712ef8b16c9b.tar.xz
lasso-f19046331727986f449305edf039712ef8b16c9b.zip
Added method get_authentication_method to session in high-level Python
binding.
Diffstat (limited to 'python')
-rw-r--r--python/lasso.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/python/lasso.py b/python/lasso.py
index 8df098d7..266d128a 100644
--- a/python/lasso.py
+++ b/python/lasso.py
@@ -281,6 +281,12 @@ class Session(_ObjectMixin, lassomod.LassoSession):
return self
new_from_dump = classmethod(new_from_dump)
+ # Attributes
+
+ def get_authentication_method(self, remote_providerID = None):
+ return lassomod.lasso_session_get_authentication_method(self, remote_providerID)
+ authentication_method = property(get_authentication_method)
+
# Methods
def dump(self):
@@ -680,8 +686,8 @@ if __name__ == '__main__':
login = Login(server)
login.init_authn_request()
login.request.set_isPassive(False)
- login.request.set_nameIDPolicy('federated')
- login.request.set_consent('urn:liberty:consent:obtained')
+ login.request.set_nameIDPolicy(libNameIDPolicyTypeFederated)
+ login.request.set_consent(libConsentObtained)
login.build_authn_request_msg('https://idp1/metadata')
print login.msg_url
shutdown()