Commit Graph

116 Commits

Author SHA1 Message Date
Emmanuel Raviart 90f1e1f493 Added new argument to lasso_login_build_authn_request_msg. 2004-08-20 17:43:07 +00:00
Emmanuel Raviart 460a7adda9 In Python high-level binding, constants are now defined using 2 forms: as a
global variable and as a dict item. For example:
libNameIDPolicyTypeFederated and libNameIDPolicyTypes['federated'].
2004-08-20 14:47:40 +00:00
Emmanuel Raviart 7b27896a47 Corrections in Python high-level binding:
- Added missing self in previous commit.

- Server default constructor allows again to give no arguments.
2004-08-20 11:31:58 +00:00
Emmanuel Raviart 16370a4eb4 I have always wanted that Python bindings for GTK, libXML, etc, allow the
user to override the classes they define. So I did it for Lasso Python
high-level bindings.
2004-08-20 11:24:02 +00:00
Emmanuel Raviart f190463317 Added method get_authentication_method to session in high-level Python
binding.
2004-08-20 09:37:47 +00:00
Emmanuel Raviart c4344d4b1b Updated Python high-level binding and tests.
May all the lights be green!
2004-08-20 00:13:35 +00:00
Emmanuel Raviart 74509f54eb Created a high-level API above SWIG Python API.
Removed a trailing "s" from an enum.
2004-08-19 22:36:50 +00:00
Emmanuel Raviart a8611528f6 __str__ should not have arguments. 2004-08-19 09:08:53 +00:00
Nicolas Clapies d75d1ecc48 little register name identifier udpates 2004-08-18 16:40:26 +00:00
Valery Febvre 52694f79f6 Small fix 2004-08-09 16:06:07 +00:00
Valery Febvre d4d3338c02 Updated server 2004-08-09 15:41:13 +00:00
Valery Febvre bb6c3b4957 Update 2004-08-09 14:55:59 +00:00
Emmanuel Raviart f475a53888 Added attributes request, request_type, response, response_type to Lecp in
Python binding. Close bug #247.
2004-08-07 15:11:06 +00:00
Emmanuel Raviart f21f14ea6e Reversed error sign convention for Python binding. 2004-08-06 15:40:51 +00:00
Emmanuel Raviart a6257aba01 Corrected error in Error. 2004-08-06 12:08:50 +00:00
Nicolas Clapies 451672047a Renamed load_notification_msg to process_notification msg, renamed process_request to validate_request, added some goto for code error, little update of the code style, updated examples 2004-08-06 07:31:59 +00:00
Emmanuel Raviart 6f48cba5e8 Python binding now raises exceptions instead of returning error codes.
Close bug #237.
2004-08-04 19:55:17 +00:00
Emmanuel Raviart 3e411cc8ef Slightly improved exception handling in Python. 2004-08-04 19:06:12 +00:00
Nicolas Clapies 39823a5f49 update of lecp python binding 2004-08-04 15:04:38 +00:00
Valery Febvre 5b1577c439 Removed the 'identity' arg in lasso_login_new_from_dump() method 2004-08-04 10:10:10 +00:00
Nicolas Clapies f46fda1851 *** empty log message *** 2004-08-04 07:40:42 +00:00
Emmanuel Raviart c2efacf298 In Python, Server.add_provider now returns an error code instead of None. 2004-08-04 05:49:35 +00:00
Nicolas Clapies 64cf35bed3 add request type test for Lecp 2004-08-03 15:23:24 +00:00
Valery Febvre 8944a5f52d - Replaced some charPtrConst_wrap() calls by charPtr_wrap()
- Added GPtrArray_wrap() function to wrap GPtrArray into Python list.
- Added session_getattr() function, we can get now providerIDs and
is_dirty properties of Session objects.
2004-08-02 23:59:26 +00:00
Emmanuel Raviart efac509926 Check that Lasso is inited and shotdown only once.
Lasso Python modules now calls init() at first import (I need this
behaviour, because I have several "import lasso" in Expression and I don't
know which one will be called first and I don't want to do something like:
import lasso
if not lasso.inited:
  lasso.init()
).
2004-08-02 17:26:28 +00:00
Valery Febvre 956bee8886 Removed access to attributes identity & session by __getattr__ 2004-07-31 13:45:01 +00:00
Emmanuel Raviart d48eb0706d Python login_tests now works again, although there remains a lasso-CRITICAL
caused by idpLoginContext.get_identity() (file login_tests.py, line 120):

(process:5228): lasso-CRITICAL **: file xml.c: line 64 (lasso_node_copy):
assertion LASSO_IS_NODE(node)' failed
ERROR
2004-07-31 08:02:48 +00:00
Valery Febvre 0b25994172 *** empty log message *** 2004-07-31 02:31:42 +00:00
Emmanuel Raviart 201afd98e3 Removed last profile_context or profileContext. 2004-07-30 20:35:07 +00:00
Nicolas Clapies 59c6cf97af *** empty log message *** 2004-07-30 15:36:55 +00:00
Valery Febvre 8fd99730d0 Update end 2004-07-30 15:34:29 +00:00
Valery Febvre 407ce45c3b Update 2004-07-30 12:02:28 +00:00
Nicolas Clapies e8228dc6e7 update of register name identifier 2004-07-29 14:08:31 +00:00
Nicolas Clapies 49964c80c2 update of federation termination 2004-07-27 15:57:45 +00:00
Emmanuel Raviart db051a1a73 Removed obsolete logout method load_from_dump.
Upgraded some residual calls to login_new & logout_new.

Updated Java binding.

Java unit test works (and C too, but Python still doesn't).
2004-07-26 22:02:03 +00:00
Valery Febvre c5c0515bb2 *** empty log message *** 2004-07-26 18:36:17 +00:00
Valery Febvre 8ae1b1ce45 Added new ProfileContext class 2004-07-26 18:07:52 +00:00
Nicolas Clapies c3fa9bdbe4 acces to RelayState in logout object 2004-07-26 16:01:59 +00:00
Frédéric Péters 110851e9d7 fixed tabulations in python files (oh the horror; they were mixed with space
indendations).  Also installed a test on commits to catch this (and check xml
files)
2004-07-25 13:52:22 +00:00
Nicolas Clapies d4b79b874b udpate of C lecp, add python lecp 2004-07-25 09:24:26 +00:00
Emmanuel Raviart c0d2b15666 Added Java LassoUser.getAuthenticationMethod
Python method User.get_authentication_method argument is now optional.

Use of this method in non-regression tests.
2004-07-23 17:02:11 +00:00
Valery Febvre a11f5fe9c4 Added lasso_user_get_authentication_method()
Done in Python too.
2004-07-23 16:34:39 +00:00
Nicolas Clapies ee2fba7c0f update of logout with better support of propagation from idp 2004-07-23 14:13:20 +00:00
Emmanuel Raviart 9fafbcd580 Nearly completed Python & Java first non-regression test for login.
But Java test doesn't work:
java.lang.UnsatisfiedLinkError: libjlasso: not found
Adding its directory to LD_LIBRARY_PATH may help.
   at LoginTest.main (LoginTest.java:165)
And I don't understand why.

Please professor, help me!
2004-07-22 18:38:50 +00:00
Emmanuel Raviart 5c6f115243 A little more java binding and non-regression tests. 2004-07-22 10:52:11 +00:00
Nicolas Clapies bc0d80c467 update of logout example with test of the request soap 2004-07-22 10:11:46 +00:00
Emmanuel Raviart 8f66aa7102 Corrected Lasso URL. 2004-07-22 06:42:41 +00:00
Valery Febvre eb68263394 Added method set_consent in LibAuthnRequest class 2004-07-22 00:47:01 +00:00
Nicolas Clapies a76740c953 *** empty log message *** 2004-07-21 16:49:42 +00:00
Nicolas Clapies 1d7b379145 add list of identity provider id in user environ 2004-07-21 12:44:33 +00:00