From f19046331727986f449305edf039712ef8b16c9b Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Fri, 20 Aug 2004 09:37:47 +0000 Subject: Added method get_authentication_method to session in high-level Python binding. --- python/lasso.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'python') 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() -- cgit