mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-28 06:42:49 +00:00
SEC-662: Add check for a null authentication object returned by provider and skip passing it to session controller.
This commit is contained in:
parent
9be3f20faa
commit
3f1ab233dc
@ -207,8 +207,11 @@ public class ProviderManager extends AbstractAuthenticationManager implements In
|
||||
|
||||
try {
|
||||
result = provider.authenticate(authentication);
|
||||
|
||||
if (result != null) {
|
||||
copyDetails(authentication, result);
|
||||
sessionController.checkAuthenticationAllowed(result);
|
||||
}
|
||||
} catch (AuthenticationException ae) {
|
||||
lastException = ae;
|
||||
result = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user