mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-28 14:52:24 +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 {
|
try {
|
||||||
result = provider.authenticate(authentication);
|
result = provider.authenticate(authentication);
|
||||||
|
|
||||||
|
if (result != null) {
|
||||||
copyDetails(authentication, result);
|
copyDetails(authentication, result);
|
||||||
sessionController.checkAuthenticationAllowed(result);
|
sessionController.checkAuthenticationAllowed(result);
|
||||||
|
}
|
||||||
} catch (AuthenticationException ae) {
|
} catch (AuthenticationException ae) {
|
||||||
lastException = ae;
|
lastException = ae;
|
||||||
result = null;
|
result = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user