Assuming these are web applications - you should implement some model of sharing trust between applications.
Under no circumstances should you write your own. It's too easy to drown out and there are many existing ones (both open and commercial) to choose from.
Here are the following options: 1 - If everyone is running Windows - you can only use Windows Native Authentication (aka SPNEGO) 2 - You can implement some type of single sign-on system. Popular systems include CAS, Oracle Access Manager, CA SiteMinder, Sun SSO, and IBM Tivoli Access Manager. Although CAS is open source, others will also allow you to implement authorization, while CAS does authentication.
Finally - make sure that whatever option you choose - it integrates with your own authentication and authorization in your language. In Java, it will be JAAS. In .NET, this would be the .NET security infrastructure. For PHP / Perl, you can use Apache modules. The advantage is that you do not have to become a security expert, and this will simplify the use of external systems for authentication and authorization without the need to re-encode your application.
Mark wilcox
source share