Yannick
2008-07-30 03:15:20 UTC
Anybody got anything to say about this?
Hi,
I think I mentioned it the first time I sent an e-mail on this list,
but one of the major problems I have with using SCA is that, if I do
implement it into existing classes, I don't want just anyone to be
able to use them freely.
In Dokeos (and outside of any web services context), we rely on an
initial authentication process (using sessions) to make sure the user
is authorized to do what he is trying to do.
However, if I want to take the full benefit out of SCA, I would like
to be able to re-use my existing functions and *just* add a few
comments here and there, and be done with it. Now the problem is that,
if I do that, I inevitably loose the "session" context (as I am going
through web services), and so I loose the authentication pre-check.
This is a big problem to me, as adding an authentication process
specifically for the web services, it means I *have to* reimplement
most of my functions to add an authentication layer.
I remember Caroline saying that someone was remotely working on/
thinking about the topic, but haven't seen any discussion about it
since then.
How are other people here dealing with that?
This is most likely to be the dead-end for us in terms of either
adopting SCA_SDO or at least considering it as a real benefit.
From the top of my head, I would say that if there was a way to
configure a web service transparently to work in an "authenticated
mode" and that, from there on, it always added a required "first"
parameter being a shared key, and optionally identified the source by
IP address, it would be enough.
- generate a modified WSDL that shows a shared_key param as a first
parameter for any function
- add a check of this first parameter before going through with the
answer to the service request
What would be the likeliness of that idea to be integrated into
SCA_SDO? We have plans for a release of our next Dokeos version at the
end of September. If it is likely, then how likely would it be that a
modified version of SCA_SDO can be rolled into PECL by then (because,
of course, we want our users to be able to use the feature without
having to pack SCA_SDO in our package)? As SCA_SDO is not written in
PHP, it would be difficult to me to contribute code, but I can
certainly contribute ideas, analysis and testing.
Yannick
I think I mentioned it the first time I sent an e-mail on this list,
but one of the major problems I have with using SCA is that, if I do
implement it into existing classes, I don't want just anyone to be
able to use them freely.
In Dokeos (and outside of any web services context), we rely on an
initial authentication process (using sessions) to make sure the user
is authorized to do what he is trying to do.
However, if I want to take the full benefit out of SCA, I would like
to be able to re-use my existing functions and *just* add a few
comments here and there, and be done with it. Now the problem is that,
if I do that, I inevitably loose the "session" context (as I am going
through web services), and so I loose the authentication pre-check.
This is a big problem to me, as adding an authentication process
specifically for the web services, it means I *have to* reimplement
most of my functions to add an authentication layer.
I remember Caroline saying that someone was remotely working on/
thinking about the topic, but haven't seen any discussion about it
since then.
How are other people here dealing with that?
This is most likely to be the dead-end for us in terms of either
adopting SCA_SDO or at least considering it as a real benefit.
From the top of my head, I would say that if there was a way to
configure a web service transparently to work in an "authenticated
mode" and that, from there on, it always added a required "first"
parameter being a shared key, and optionally identified the source by
IP address, it would be enough.
- generate a modified WSDL that shows a shared_key param as a first
parameter for any function
- add a check of this first parameter before going through with the
answer to the service request
What would be the likeliness of that idea to be integrated into
SCA_SDO? We have plans for a release of our next Dokeos version at the
end of September. If it is likely, then how likely would it be that a
modified version of SCA_SDO can be rolled into PECL by then (because,
of course, we want our users to be able to use the feature without
having to pack SCA_SDO in our package)? As SCA_SDO is not written in
PHP, it would be difficult to me to contribute code, but I can
certainly contribute ideas, analysis and testing.
Yannick