Authentication in the generic server [message #606346] |
Wed, 12 July 2006 10:29  |
Eclipse User |
|
|
|
Hi,
We are attempting to add authentication while using the generic server. To
do so a IConnectContext must be passed in with the connect request. In our
case we will pass in an token, so no callbacks are necessary.
In line 127 of org.eclipse.ecf.provider.generic.ClientSOContainer I see a
statement:
Object connectData = createConnectData(remote, callbacks, null);
The null is th eplace where data must be put for verification on the server.
Is it the intention to override the createConnectData method for adding the
authentication? Otherwise I don't see a possibility to get the token (or
callback results) to the server.
Kind regards,
Jaap
|
|
|
Re: Authentication in the generic server [message #606348 is a reply to message #606346] |
Wed, 12 July 2006 11:20  |
Eclipse User |
|
|
|
Hi Jaap,
Jaap Reitsma wrote:
> Hi,
>
> We are attempting to add authentication while using the generic server. To
> do so a IConnectContext must be passed in with the connect request. In our
> case we will pass in an token, so no callbacks are necessary.
>
> In line 127 of org.eclipse.ecf.provider.generic.ClientSOContainer I see a
> statement:
> Object connectData = createConnectData(remote, callbacks, null);
>
> The null is th eplace where data must be put for verification on the server.
>
> Is it the intention to override the createConnectData method for adding the
> authentication?
Yes this was the original intention (that a subclass would determine the
expected type/contents of authentication data...since the subclass also
is responsible for the type of transport).
Admittedly it's not a very good approach as it should be possible to
set/change this createConnectData function at runtime. I've filed this
bug for this change in design:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=150398
Thanks,
Scott
Otherwise I don't see a possibility to get the token (or
> callback results) to the server.
>
> Kind regards,
>
> Jaap
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03350 seconds