2010-07-06 43 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