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:
+7
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user