summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-07-31 13:45:01 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-07-31 13:45:01 +0000
commit956bee8886799f8c4a90d3c4620a763d8448f911 (patch)
treedfddd4759989a351b62c15344b3b96e625ddcd25 /python
parenta0a5f744f88e6ad2c014c6e2e17c9b208589f25d (diff)
downloadlasso-956bee8886799f8c4a90d3c4620a763d8448f911.tar.gz
lasso-956bee8886799f8c4a90d3c4620a763d8448f911.tar.xz
lasso-956bee8886799f8c4a90d3c4620a763d8448f911.zip
Removed access to attributes identity & session by __getattr__
Diffstat (limited to 'python')
-rw-r--r--python/environs/py_login.c6
-rw-r--r--python/environs/py_logout.c12
-rw-r--r--python/lasso.py8
3 files changed, 5 insertions, 21 deletions
diff --git a/python/environs/py_login.c b/python/environs/py_login.c
index 26c2f9aa..4a41be6d 100644
--- a/python/environs/py_login.c
+++ b/python/environs/py_login.c
@@ -56,15 +56,11 @@ PyObject *login_getattr(PyObject *self, PyObject *args) {
login = LassoLogin_get(login_obj);
if (!strcmp(attr, "__members__"))
- return Py_BuildValue("[ssssssssssss]", "identity", "session", "request", "response",
+ return Py_BuildValue("[ssssssssss]", "request", "response",
"request_type", "response_type", "nameIdentifier",
"provider_type",
"msg_url", "msg_body", "msg_relayState", "response_dump",
"protocolProfile", "assertionArtifact");
- if (!strcmp(attr, "identity"))
- return (LassoIdentity_wrap(LASSO_PROFILE(login)->identity));
- if (!strcmp(attr, "session"))
- return (LassoSession_wrap(LASSO_PROFILE(login)->session));
if (!strcmp(attr, "request"))
return (LassoNode_wrap(LASSO_PROFILE(login)->request));
if (!strcmp(attr, "response"))
diff --git a/python/environs/py_logout.c b/python/environs/py_logout.c
index 3625f287..22681d7c 100644
--- a/python/environs/py_logout.c
+++ b/python/environs/py_logout.c
@@ -57,22 +57,18 @@ PyObject *logout_getattr(PyObject *self, PyObject *args) {
logout = LassoLogout_get(logout_obj);
if (!strcmp(attr, "__members__"))
- return Py_BuildValue("[ssssssss]", "identity", "session", "request", "response",
- "msg_url", "msg_body", "nameIdentifier", "msg_relayState");
- if (!strcmp(attr, "identity"))
- return (LassoIdentity_wrap(LASSO_PROFILE(logout)->identity));
- if (!strcmp(attr, "session"))
- return (LassoSession_wrap(LASSO_PROFILE(logout)->session));
+ return Py_BuildValue("[ssssss]", "request", "response", "nameIdentifier",
+ "msg_url", "msg_body", "msg_relayState");
if (!strcmp(attr, "request"))
return (LassoNode_wrap(LASSO_PROFILE(logout)->request));
if (!strcmp(attr, "response"))
return (LassoNode_wrap(LASSO_PROFILE(logout)->response));
+ if (!strcmp(attr, "nameIdentifier"))
+ return (charPtrConst_wrap(LASSO_PROFILE(logout)->nameIdentifier));
if (!strcmp(attr, "msg_url"))
return (charPtrConst_wrap(LASSO_PROFILE(logout)->msg_url));
if (!strcmp(attr, "msg_body"))
return (charPtrConst_wrap(LASSO_PROFILE(logout)->msg_body));
- if (!strcmp(attr, "nameIdentifier"))
- return (charPtrConst_wrap(LASSO_PROFILE(logout)->nameIdentifier));
if (!strcmp(attr, "msg_relayState"))
return (charPtrConst_wrap(LASSO_PROFILE(logout)->msg_relayState));
diff --git a/python/lasso.py b/python/lasso.py
index 3002f969..ed58c01f 100644
--- a/python/lasso.py
+++ b/python/lasso.py
@@ -934,10 +934,6 @@ class Login(Profile):
ret = lassomod.login_getattr(self, name)
if ret is None:
raise AttributeError, name
- elif name == "identity":
- ret= Identity(_obj=ret)
- elif name == "session":
- ret= Session(_obj=ret)
elif name == "request":
if lassomod.login_getattr(self, "request_type") == messageTypeAuthnRequest:
ret = AuthnRequest(None, _obj=ret)
@@ -1039,10 +1035,6 @@ class Logout(Profile):
ret = lassomod.logout_getattr(self, name)
if ret is None:
return None
- elif name == "identity":
- ret= Identity(_obj=ret)
- elif name == "session":
- ret= Session(_obj=ret)
elif name == "request":
ret = LogoutRequest(_obj=ret)
elif name == "response":