Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Fix for FLEX-212: Spring Security integration does not work with Data Services NIO endpoints #1

Merged
merged 1 commit into from
Oct 31, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,11 @@ protected String extractPassword(Object credentials) {
* @param authRequest the authentication request object that should have its details set
*/
protected void setDetails(HttpServletRequest request, UsernamePasswordAuthenticationToken authRequest) {
authRequest.setDetails(authenticationDetailsSource.buildDetails(request));
try {
authRequest.setDetails(authenticationDetailsSource.buildDetails(request));
} catch (Exception e) {
// This would happen e.g. for LCDS NIO Endpoints, which only have a "shell" request.
// Don't do anything.
}
}
}