2010-07-06 79 views
0

我试图从该接口(org.springframework.security.core.Authentication)使用详细信息和/或主要字段返回一些自定义身份验证数据,但没有任何反应。 在通道集的另一侧返回的数据仅包含名称和权限列表(作为字符串),但它不够用AMF通过Spring安全登录

如何在Spring登录请求上传输其他数据?

回答

0

希望可以附加在以下链接描述一些自定义的数据到春天验证实例(通过调用ChannelSet.login创建):

+0

- HTTP://论坛。 springsource.org/showthread.php?t=84160 – Dragos 2010-07-06 20:42:30

+0

- http://forum.springsource.org/showthread.php?t=52529 - http://static.springsource.org/spring-security/site/docs /3.0.x/apidocs/org/springframework/security/web/authentication/AuthenticationSuccessHandler.html - http://static.springsource.org/spring-security/site/apidocs/org/springframework/security/web/authentication/class-use/AuthenticationSuccessHandler.html 问候, 德拉戈什 – Dragos 2010-07-06 20:43:08

+0

以上没有工作; 任何人都知道如何从AuthenticationProvider返回自定义响应? 通过教程设置,Spring可以删除除用户名和角色以外的所有内容.... 谢谢 – Dragos 2010-07-07 22:29:18