Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » Authentication in the generic server
Authentication in the generic server [message #606346] Wed, 12 July 2006 14:29 Go to next message
Jaap Reitsma is currently offline Jaap ReitsmaFriend
Messages: 69
Registered: July 2009
Member
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 15:20 Go to previous message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
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
>
>
>
Previous Topic:explanation about the server role and the communication protocol
Next Topic:ECF ongoing sub-projects
Goto Forum:
  


Current Time: Fri Sep 20 01:07:28 GMT 2024

Powered by FUDForum. Page generated in 0.03601 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top