Modify is_lasso_ecp_enabled() to test for library symbol
[cascardo/ipsilon.git] / ipsilon / providers / saml2idp.py
index d4f3a31..0404fe8 100644 (file)
@@ -28,8 +28,8 @@ cherrypy.tools.require_content_type = cherrypy.Tool('before_request_body',
 
 
 def is_lasso_ecp_enabled():
-    # Full ECP support appeared in lasso version 2.4.2
-    return lasso.checkVersion(2, 4, 2, lasso.CHECK_VERSION_NUMERIC)
+    # Look for an exported symbol we know was added with ECP support
+    return 'ECP_ERROR_MISSING_AUTHN_REQUEST' in dir(lasso)
 
 
 class SSO_SOAP(AuthenticateRequest):