单点登录+弹簧 [英] single signon + spring

查看:121
本文介绍了单点登录+弹簧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人能告诉我如何在我的spring应用程序中实现单点登录。(Tomcat或Jboss服务器)

Can anybody tell me how to implement single signon in my spring application.(Tomcat or Jboss server)

分享我的任何文档或链接以将此功能带入我的春季应用。

share me any documentation or link to bring this feature in my spring app.

我使用的是春季2.5.6。

I am using spring 2.5.6 .

请帮忙。

推荐答案

您需要的是 spring-security

它支持 OpenID CAS 开箱即用,但您需要做一些研究在你自己的那些。

It supports both OpenID and CAS out of the box, but you'll need to do some research on your own on those.

如果您只需要基本的SSO功能,我可以建议您实现自己的 UsernamePasswordAuthenticationFilter 和/或 AbstractPreAuthenticatedProcessingFilter 并使用cookie。 这个答案将帮助您做到这一点。

If you need just basic SSO functionality I can recommend just implementing your own UsernamePasswordAuthenticationFilter and/or AbstractPreAuthenticatedProcessingFilter and using cookies. This answer will help you do that.

您还应该查看 spring-security docs 然后根据需要提出更具体的问题。

You also should have a look at the spring-security docs and then ask a more specific question if you need to.

这篇关于单点登录+弹簧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆