1
0
mirror of synced 2026-08-04 17:27:13 +00:00

SEC-1431: Modify OpenID sample to use a custom UserDetailsService which allows any user to authenticate, allocating them a standard role and "registers" their ID in a map, allowing it to be retrieved in subsequent logins.

This commit is contained in:
Luke Taylor
2010-04-15 23:21:09 +01:00
parent f5468087c2
commit ee1fd1bc50
11 changed files with 198 additions and 43 deletions
@@ -204,6 +204,13 @@ public abstract class AbstractPreAuthenticatedProcessingFilter extends GenericFi
this.authenticationManager = authenticationManager;
}
/**
* If set to {@code true}, any {@code AuthenticationException} raised by the {@code AuthenticationManager} will be
* swallowed, and the request will be allowed to proceed, potentially using alternative authentication mechanisms.
* If {@code false} (the default), authentication failure will result in an immediate exception.
*
* @param shouldContinue set to {@code true} to allow the request to proceed after a failed authentication.
*/
public void setContinueFilterChainOnUnsuccessfulAuthentication(boolean shouldContinue) {
continueFilterChainOnUnsuccessfulAuthentication = shouldContinue;
}