简体   繁体   English

如何使用单点登录集成两个应用程序

[英]How to integrate two applications using single sign on

I am having a .net/Java application (application1) in which I have to integrate a service which I have it on another application (application2) which has been designed using Java and important thing is that the user who logged in application1 should be maintained in appliation2. 我有一个.net / Java应用程序(application1),其中我必须将该服务集成到使用Java设计的另一个应用程序(application2)上,重要的是应该维护登录application1的用户在应用中2。

I know CAS authentication can be used as a solution but I am not sure how this can be achieved if any idea on this kindly share. 我知道可以使用CAS身份验证作为解决方案,但是我不确定如果对此有任何想法,可以如何实现。

CAS is the best choice for token based single sign on purpose and it is secured one also. CAS是基于令牌的单点签名的最佳选择,并且它也是安全的。 CAS will available as a .war file format, you just need to deploy it any server like tomcat, now CAS will work as a centralized authentication system. CAS将以.war文件格式提供,您只需要将其部署到任何服务器(例如tomcat),现在CAS就可以用作集中式身份验证系统。 From your applications .Net/ Java you have to import CAS client libraries, and do the xml configurations for login , logout and redirection purpose. 从您的.Net / Java应用程序中,您必须导入CAS客户端库,并进行xml配置以用于登录,注销和重定向。 Like this the same one you have to repeat for other application (app2) also. 像这样,您还必须对其他应用程序(app2)重复相同的操作。

Based on your requirement may be the first application will be the parent one so cas related token tables you need to implement in your Parent application DB. 根据您的要求,第一个应用程序将成为父应用程序,因此您需要在父应用程序数据库中实现与cas相关的令牌表。 in this case second application level no need to check for the password, cas will authenticate with the token generetd by the first application. 在这种情况下,第二个应用程序级别无需检查密码,cas将使用第一个应用程序生成的令牌进行身份验证。

If you want CAS should be your parent application In the CAS user data base you should have all login details of users like username and password ect. 如果您希望CAS应该是您的父应用程序,那么在CAS用户数据库中,您应该拥有用户的所有登录详细信息,例如用户名和密码等。 once cas login is done, you have to provide any buttons or links to open other applications, by using the cas client libraries other applications also will get authenticate if the user name is there in their Data base. 一旦cas登录完成,您必须提供任何按钮或链接来打开其他应用程序,通过使用cas客户端库,如果用户名在其数据库中,其他应用程序也将获得身份验证。

for example refer : https://docs.spring.io/spring-security/site/docs/3.0.x/reference/cas.html 例如参考: https : //docs.spring.io/spring-security/site/docs/3.0.x/reference/cas.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用SAML和Shibboleth实现或集成单点登录 - How to implement or integrate single sign on with SAML and Shibboleth 如何使用Spring Security在多个基于JVM的应用程序上实现单点登录 - How to implement single sign on across multiple JVM based applications using Spring Security 将单独的 java 应用程序集成为单个应用程序的模块 - Integrate separate java applications as modules of a single application JSF应用程序的Websphere单一登录 - Websphere Single Sign-On of JSF applications 如何将两个tomcat应用程序从单独的服务器迁移到单个服务器? - How to migrate two tomcat applications from separate servers to a single server? 如何通过 Azure 门户网站的 AD 用户为几个不同的应用程序实施单点登录 (SSO)? - How to implement Single sign-on (SSO) with AD user from Azure portal for few different applications? 单一登录使用openSSO - Single Sign On using openSSO 如何将Java Wildfly Swarm应用程序与Sentry集成? - How to integrate Java Wildfly Swarm applications with Sentry? 在单线程应用程序中使用StringBuffer - Using StringBuffer in single thread applications 如何使用 Spring 和 Active Directory 实现单点登录 - How to implement Single Sign On using Spring and Active Directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM