Spring安全认证 - 有关文档的问题 [英] Spring Security Authentication - Question about the Documentation

查看:128
本文介绍了Spring安全认证 - 有关文档的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Spring Security JavaDoc中查看此页面:

I'm looking at this page in the Spring Security JavaDoc:

http ://static.springsource.org/spring-security/site/docs/3.1.x/apidocs/org/springframework/security/web/authentication/AbstractAuthenticationProcessingFilter.html#attemptAuthentication(javax.servlet.http.HttpServletRequest,%20javax。 servlet.http.HttpServletResponse

这一行是什么意思?


返回null,表示
身份验证过程仍在
进度中。在返回之前,
实现应执行完成
所需的任何
额外工作过程。

Return null, indicating that the authentication process is still in progress. Before returning, the implementation should perform any additional work required to complete the process.

我正在努力m允许用户登录并收集其他数据。我不想使用默认的UsernamePasswordAuthenticationFilter,因为我将丢失表单中填写的所有其他数据。

I'm working on a form that allows a user to log in and collects other data. I don't want to use the default UsernamePasswordAuthenticationFilter because I will then lose all the other data filled out in the form.

推荐答案

从登录表单中捕获更多数据的常用方法是使用自定义WebAuthenticationDetails。

The usual way to capture more data from the login form is to use a custom WebAuthenticationDetails.

参见这个主题有关如何执行此操作的信息。

See this thread for info on how to do this.

这篇关于Spring安全认证 - 有关文档的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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