diff options
| author | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-08-27 22:32:59 +0000 |
|---|---|---|
| committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-08-27 22:32:59 +0000 |
| commit | 8425480fb7bf6906c970a75c13826da480ae46e1 (patch) | |
| tree | cac8afcc8f07c39e276084741e8333052eb0130b /python | |
| parent | 0791ef056f421368f4a8079d17ccf96cbbfbd8d5 (diff) | |
| download | lasso-8425480fb7bf6906c970a75c13826da480ae46e1.tar.gz lasso-8425480fb7bf6906c970a75c13826da480ae46e1.tar.xz lasso-8425480fb7bf6906c970a75c13826da480ae46e1.zip | |
Transformed LassoAuthnRequest as a true SWIG class with attributes and
methods for all bindings.
Diffstat (limited to 'python')
| -rw-r--r-- | python/lasso.py | 39 | ||||
| -rw-r--r-- | python/tests/login_tests.py | 4 |
2 files changed, 2 insertions, 41 deletions
diff --git a/python/lasso.py b/python/lasso.py index 1fcb26a4..c4987f40 100644 --- a/python/lasso.py +++ b/python/lasso.py @@ -221,45 +221,6 @@ class AuthnRequest(_ObjectMixin, lassomod.LassoAuthnRequest): lassomodClass = lassomod.LassoAuthnRequest - # Attributes - - def set_affiliationID(self, affiliationID): - lassomod.lasso_lib_authn_request_set_affiliationID(self.parent, affiliationID) - affiliationID = property(None, set_affiliationID) - - def set_assertionConsumerServiceID(self, assertionConsumerServiceID): - lassomod.lasso_lib_authn_request_set_assertionConsumerServiceID( - self.parent, assertionConsumerServiceID) - assertionConsumerServiceID = property(None, set_assertionConsumerServiceID) - - def set_consent(self, consent): - lassomod.lasso_lib_authn_request_set_consent(self.parent, consent) - consent = property(None, set_consent) - - def set_forceAuthn(self, forceAuthn): - lassomod.lasso_lib_authn_request_set_forceAuthn(self.parent, forceAuthn) - forceAuthn = property(None, set_forceAuthn) - - def set_isPassive(self, isPassive): - lassomod.lasso_lib_authn_request_set_isPassive(self.parent, isPassive) - isPassive = property(None, set_isPassive) - - def set_nameIDPolicy(self, nameIDPolicy): - lassomod.lasso_lib_authn_request_set_nameIDPolicy(self.parent, nameIDPolicy) - nameIDPolicy = property(None, set_nameIDPolicy) - - def set_protocolProfile(self, protocolProfile): - lassomod.lasso_lib_authn_request_set_protocolProfile(self.parent, protocolProfile) - protocolProfile = property(None, set_protocolProfile) - - def set_providerID(self, providerID): - lassomod.lasso_lib_authn_request_set_providerID(self.parent, providerID) - providerID = property(None, set_providerID) - - def set_relayState(self, relayState): - lassomod.lasso_lib_authn_request_set_relayState(self.parent, relayState) - relayState = property(None, set_relayState) - registerClass(AuthnRequest) diff --git a/python/tests/login_tests.py b/python/tests/login_tests.py index 614ea4cc..a7ac8cd2 100644 --- a/python/tests/login_tests.py +++ b/python/tests/login_tests.py @@ -60,12 +60,12 @@ class LoginTestCase(unittest.TestCase): login.init_authn_request(lasso.httpMethodRedirect) self.failUnlessEqual(login.request_type, lasso.messageTypeAuthnRequest) login.authn_request - login.authn_request.set_protocolProfile(lasso.libProtocolProfileBrwsArt) + login.authn_request.protocolProfile = lasso.libProtocolProfileBrwsArt class LogoutTestCase(unittest.TestCase): def test01(self): - """SP logout without session and indentity; testing init_request.""" + """SP logout without session and identity; testing init_request.""" lassoServer = lasso.Server( os.path.join(dataDir, 'sp1-la/metadata.xml'), |
