![](/img/trans.png)
[英]How to include SPRING_SECURITY_LAST_USERNAME in authentication failure url?
[英]Can we pass the entered username to authentication failure url in spring security?
如果通過不匹配的密碼驗證失敗,我們是否可以將輸入的用戶名傳遞給spring security中的身份驗證失敗URL?
假設您在詢問,如果身份驗證失敗,我們如何獲取用戶名,它可以在特殊的彈簧安全常量SPRING_SECURITY_LAST_USERNAME中使用。
這個SO討論可能是有用的參考。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.