View Full Version : Authorize in remoting with spring
wjshome
10-02-2007, 05:12 PM
hi, im using spring to develop my remoting app.
as we know, some services we don't need autorization (Login,xxxx)
while other some need.
is there a proper way for remoting authorzation in spring?
Thanks.
steinard
10-02-2007, 05:43 PM
Hi!
I haven't heard that Spring.Net provides any security modules for you that is "out-of-the-box" to use. But I'm using Acegi-like security with Spring.Net. I posted some questions about it here some time ago:
http://forum.springframework.net/showthread.php?t=2453
Hope this helps,
Steinar.
wjshome
10-03-2007, 10:34 AM
i got idea from you
thanks.
another question:
when i enable secure="true" in configuation file
the client can obtain the object, but becoming not respsoding when invoke the remote methods.
do u meet this problem?
it might be the problem that i didn't enable secure attribute in the client side, but how can i enable this in spring?
wjshome
10-03-2007, 11:36 AM
yep.
i figured out the problem, just place the same the remoting config in the client side but set to no ports and enable the secure.
serverSide:
<objects xmlns="http://www.springframework.net"
xmlns:r="http://www.springframework.net/remoting">
<description>Definitions of objects to be exported.</description>
<r:configurer filename="XXX.Server.exe.config" ensureSecurity="true" />
....
....
<system.runtime.remoting>
<application>
<channels>
<channel ref="tcp" port="8787" />
</channels>
</application>
</system.runtime.remoting>
clientSide:
<objects xmlns="http://www.springframework.net"
xmlns:r="http://www.springframework.net/remoting">
<description>Definitions of objects to be exported.</description>
<r:configurer filename="XXX.Client.exe.config" ensureSecurity="true" />
...
...
<system.runtime.remoting>
<application>
<channels>
<channel ref="tcp" />
</channels>
</application>
</system.runtime.remoting>
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.