是否有Spring Security OpenId注册(例如stackoverflow)? [英] Is there a Spring Security OpenId Registration like stackoverflow?

查看:123
本文介绍了是否有Spring Security OpenId注册(例如stackoverflow)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Spring Security Web App的任何地方都找不到完整的示例,该应用程序具有类似于stackoverflows的Open Id注册.

我会说我是一个非常有技巧的人,但是我发现Spring Security对其奇怪的Spring XML DSL感到非常恐惧.

I would say I'm pretty techy guy but I find Spring Security extremely intimidating with its weird Spring XML DSL.

我发现了如何使用以下方法来完成良好的ole'stackoverflow注册的点点滴滴:

I have found bits and pieces of how one would do the good ole' stackoverflow registration using:

  • Spring Security Open ID sample WAR
  • Hillerts Blog 3 part blog posting
  • Spring Security Official Doc on OpenId (the email attributes are wrong see next link)
  • Stackoverflow posting about email attributes
  • JQuery OpenId library for picking your OpenId provider Stackoverflow has a modified one that seems to include Facebook
  • Best Article on the subject but a little long winded
  • Another example like previous one for Google App Engine

但没有完整的示例(WAR).有没有人知道或有一个工作示例(例如WAR),它不仅可以使用内存中的openid url进行身份验证?

But no complete examples (WAR). Does anyone know or have a working example (ie WAR) that does more than just authenticate with an in-memory openid urls?

更新:的最新版本 Spring Social 在管理Oauth注册方面做得非常好.我们最终改为使用它.尽管它不是OpenId,但我已经变得更喜欢Oauth而不是OpenId.对于有兴趣的人,有一个项目可以将OpenId与spring social一起使用: https://github.com /molindo/spring-social-openid

推荐答案

您是否查看了示例代码的最新版本(适用于3.1发行版)?

Have you looked at the latest version of the sample code (for the 3.1 release)?

它具有多项改进,可以更轻松地一起使用Google和Yahoo身份验证(同时具有不同的属性交换配置),使用类似的登录对话框来堆栈溢出,并且对于以前未访问过用户的用户,可以执行简单的注册.应用程序.

It has several improvements to make it simpler to use Google and Yahoo authentication together (with different attribute exchange configurations simultaneously), uses a similar login dialog to stack overflow and performs simple registration in the case of users who have not previously accessed the app.

请参阅此问题 https://jira.springsource.org/browse/SEC-1431(以及链接的链接)以获取更多信息.

See this issue https://jira.springsource.org/browse/SEC-1431 (and the linked one) for more information.

这篇关于是否有Spring Security OpenId注册(例如stackoverflow)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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