Any Authentication Patterns?

Hi,

Basically I want to develop a server/client socket application. However I want to make the server handle actions depending on the access privileges of the client.

I could just code something out and get something working, however I am sure that the result would be mediocre and easy to hack by other people.

Thus I was wondering whether there are any good patterns out there that can guide me on how to best achieve such an authentication process.

Thanks and Regards,

Sim085

[515 byte] By [sim085a] at [2007-11-27 5:48:13]
# 1
don't reinvent the wheel. Find an existing system and integrate it with your application.
jwentinga at 2007-7-12 15:33:28 > top of Java-index,Core,Core APIs...
# 2

> don't reinvent the wheel. Find an existing system and

> integrate it with your application.

Do you mean an open source framework? I totally agree with that and that is why I made this post in the first place! However I really do not know what is the best way forward to learn how to use sockets in a full blown network application. So far I built small applications, however taking it to the next step is showing to be hard!

I was hoping for books that contained patters (which would involve detail on the whole life cycle of a connection between the client and server including the authentication, usage and disconnection process) however it seems very hard to find anything both on google and also amzone!

I was wondering whether it would be a good idea to actually download some open source application (like a chat application) and see how they work (the source).

Would this be the best way forward? and if so, are there any good open source applications which I can give a look at?

Thanks and Regards,

Sim085

sim085a at 2007-7-12 15:33:28 > top of Java-index,Core,Core APIs...