Hi,
i am writing a Client-Server Application with the following technical background:
Server: Spring 3.1 WebApplicationContext running on Tomcat 7
Client: Swing-"Fat"-Client, using Spring 3.1 ClassPathApplicationContext
As communication Protocol i chose Spring HTTP-Invoker, but i am still open to suggestions, maybe i would be better off with Spring RMI-Invoker?
What i already got is a working communication (even with SSL). But what i don't understand is how do i implement a login? I want to implement a login frame on my client. When the client clicks login, the credentials should be sent to the server, where they are validated as usual with my AuthenticationManager.
First: how do i achieve this? Is Basic Authentication suitable and if so: is there a way to achieve this with Spring-AuthenticationSimpleHttpInvokerRequestExecutor?
Second: even if i got this to work.. what next? Do i need to check this on every access? (will be bad for performance i guess) Or how can make sure that the client was successfully authenticated?
I googled a lot, but found only a few hints and mostly very outdated answers. Any help would be appreciated!


Reply With Quote


